-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
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
Improve codegen #3692
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Boshen
pushed a commit
that referenced
this issue
Jun 20, 2024
Need to figure out these cases - export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
+ export type UnionToIntersection<U> = U extends (any) ? (k: U) => void : never extends ((k: infer I) => void) ? I : never; - export type LooseRequired<T> = {
- [P in keyof (T & Required<T>)]: T[P];
- };
+ export type LooseRequired<T> = { [P in keyof ((T) & (Required<T>))] : T[P]}; |
It seems like test setup is incorrect for
Need to format computed class / object exactly written
The last case is how astral strings should be generated
And the famous one where
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
X | Y
don't print as((X) | (Y))
new (<any>A());
and allnew
expressions bracketed differentlyprintNextIndentAsSpace
logic https://github.com/evanw/esbuild/blob/fc37c2fa9de2ad77476a6d4a8f1516196b90187e/internal/js_printer/js_printer.go#L290for (;;) ;
--x;
x++;
{ foo: !xx }
const {d:e = ''} = {}
Some really difficult cases :-/
The text was updated successfully, but these errors were encountered: