Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typesaurusSettings function with undefinedToNull setting #111

Closed

Conversation

SrBrahma
Copy link

Based on #100,

Now it's exported typesaurusSettings(settings: Partial<TypesaurusSettings>): void, with type TypesaurusSettings = { undefinedToNull: boolean; }

To keep its current behavior, undefinedToNull defaults to true.

To use it, simply call typesaurusSettings({undefinedToNull: false}) before write operations are made in your code.

@SrBrahma SrBrahma changed the base branch from master to v8 January 16, 2022 18:40
@kossnocorp
Copy link
Owner

Thank you for the PR, sorry for not merging it but the problem got addressed in v10: https://typesaurus.com/decisions/adr-1-undefined/

@kossnocorp kossnocorp closed this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants