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
Bit ints
This code:
export type Falsy = false | "" | 0 | 0n | null | undefined;
incorrectly prints as:
type Falsy = false | "" | 0 | 0 | null | undefined
A big int 0 should print (I think) as 0n. TypeScript distinguishes between the types 0 and 0n. 0 | 0 will simplify to 0, while 0 | 0n will not.
0n
0
0 | 0
0 | 0n
Strings
It seems that no escaping is performed on string literal types. This code:
export type Newline = "\n";
prints (in command-line text output) as:
type Newline = " "
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bit ints
This code:
incorrectly prints as:
A big int 0 should print (I think) as
0n
. TypeScript distinguishes between the types0
and0n
.0 | 0
will simplify to0
, while0 | 0n
will not.Strings
It seems that no escaping is performed on string literal types. This code:
prints (in command-line text output) as:
The text was updated successfully, but these errors were encountered: