-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: posthog init should reject invalid config in TypeScript (#1097)
We've seen the reasonable typo of Id for ID when people use distinct id bootstrapping with this SDK see https://twitter.com/illyism/status/1771586772067123490 Because we accept Partial<PostHogConfig> into init Typescript doesn't check for additional keys With some typescript magic we can change that behavior without breaking the ability to only pass partial config
- Loading branch information
1 parent
d6280fb
commit 3f6f550
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters