Skip to content

Commit

Permalink
fix: update init() type (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
thexeos committed Jan 23, 2025
1 parent 4b88b20 commit 5f87f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class PostHog {
token: string,
config?: OnlyValidKeys<Partial<PostHogConfig>, Partial<PostHogConfig>>,
name?: string
): PostHog | undefined {
): PostHog {
if (!name || name === PRIMARY_INSTANCE_NAME) {
// This means we are initializing the primary instance (i.e. this)
return this._init(token, config, name)
Expand Down

0 comments on commit 5f87f83

Please sign in to comment.