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 authored Dec 18, 2024
1 parent 6da785b commit 9cefc26
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 @@ -358,7 +358,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 9cefc26

Please sign in to comment.