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
null
undefined
true
false
case
===
string | boolean === string | number
string
switch
never
{ hasValue: true; value: string } | { hasValue: false }
{ hasValue: boolean; value?: string }
enum X { a = 1 << 0, b = 1 << 1 }
enum X { a = 1, b = 2}
T
U
master
The text was updated successfully, but these errors were encountered:
No branches or pull requests
null
,undefined
,true
)true
andfalse
case
labels===
operator would narrow based onnull
/undefined
string | boolean === string | number
producesstring
for both operandsswitch
blockscase
fall-throughnever
for exhaustiveness{ hasValue: true; value: string } | { hasValue: false }
instead of{ hasValue: boolean; value?: string }
enum X { a = 1 << 0, b = 1 << 1 }
different fromenum X { a = 1, b = 2}
T
assignable toU
whenT
is a constituent ofU
by object identitymaster
, review feedback, then possibly 2.0 branchThe text was updated successfully, but these errors were encountered: