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
Constructs a type by excluding null and undefined from Type.
type T0 = NonNullable<string | number | undefined>; // type T0 = string | number type T1 = NonNullable<string[] | null | undefined>; // type T1 = string[]
The text was updated successfully, but these errors were encountered:
/** * Exclude null and undefined from T */ type NonNullable<T> = T & {};
Sorry, something went wrong.
No branches or pull requests
Constructs a type by excluding null and undefined from Type.
The text was updated successfully, but these errors were encountered: