Closed SrBrahma closed 5 months ago
Based on https://github.com/kossnocorp/typesaurus/issues/100,
Now it's exported typesaurusSettings(settings: Partial<TypesaurusSettings>): void, with type TypesaurusSettings = { undefinedToNull: boolean; }
typesaurusSettings(settings: Partial<TypesaurusSettings>): void
type TypesaurusSettings = { undefinedToNull: boolean; }
To keep its current behavior, undefinedToNull defaults to true.
undefinedToNull
true
To use it, simply call typesaurusSettings({undefinedToNull: false}) before write operations are made in your code.
typesaurusSettings({undefinedToNull: false})
Thank you for the PR, sorry for not merging it but the problem got addressed in v10: https://typesaurus.com/decisions/adr-1-undefined/
Based on https://github.com/kossnocorp/typesaurus/issues/100,
Now it's exported
typesaurusSettings(settings: Partial<TypesaurusSettings>): void
, withtype TypesaurusSettings = { undefinedToNull: boolean; }
To keep its current behavior,
undefinedToNull
defaults totrue
.To use it, simply call
typesaurusSettings({undefinedToNull: false})
before write operations are made in your code.