We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JsonObject that comes from 'type-fest' (annoyingly) includes undefined as valid value, which is not the case for json.
JsonObject
A better definition would be:
type JsonObject = { [key: string]: JsonValue, }; type JsonValue = JsonObject | JsonValue[] | boolean | number | string | null;
The text was updated successfully, but these errors were encountered:
fix: loosen JsonObject definition to include undefined
e541931
A temporary workaround sindresorhus/serialize-error#52
JsonObject that comes from 'type-fest' (annoyingly) includes undefined as valid value
It does not. It allows optional keys. You might want to use the exactOptionalPropertyTypes flag.
exactOptionalPropertyTypes
Sorry, something went wrong.
Context: sindresorhus/type-fest#65
No branches or pull requests
JsonObject
that comes from 'type-fest' (annoyingly) includes undefined as valid value, which is not the case for json.A better definition would be:
The text was updated successfully, but these errors were encountered: