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
Generic with condition
version 4.2.3
Playground link with relevant code
type Maybe<T, F = null> = T extends never ? F : T; // 'null' type A = never extends never ? null : never; // 'never' type B = Maybe<never, null>;
type A is null type B is never
type A & type B both are null
The text was updated successfully, but these errors were encountered:
Duplicate of #31751
Sorry, something went wrong.
thanks
No branches or pull requests
Bug Report
π Search Terms
Generic with condition
π Version & Regression Information
version 4.2.3
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
type A is null
type B is never
π Expected behavior
type A & type B both are null
The text was updated successfully, but these errors were encountered: