Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 019ffdd

Browse files
committed
Release 1.16.4
1 parent 882ad57 commit 019ffdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-use-posthog",
3-
"version": "1.16.2",
3+
"version": "1.16.4",
44
"license": "MIT",
55
"description": "A Next.js hook for PostHog analytics",
66
"author": {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
22
import posthog, { PostHogConfig } from 'posthog-js'
33
import { useEffect } from 'react'
44

5-
export const usePostHog = (apiKey: string, config?: PostHogConfig, name?: string): void => {
5+
export const usePostHog = (apiKey: string, config?: Partial<PostHogConfig>, name?: string): void => {
66
const router = useRouter()
77

88
useEffect(() => {

0 commit comments

Comments
 (0)