You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PostHog.init() method always returns a value (PostHog) and never returns undefined, contrary to what TS types suggest. The current behavior is as follows:
The
PostHog.init()
method always returns a value (PostHog
) and never returnsundefined
, contrary to what TS types suggest. The current behavior is as follows:Returns the primary PostHog instance (
this
) when:Returns a new named PostHog instance when:
Relevant code:
posthog-js/src/posthog-core.ts
Lines 357 to 562 in 6da785b
The text was updated successfully, but these errors were encountered: