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
Support TypeScript 4.0 #8646
Comments
Also a |
Yep and it may be useful to drop if its anything other than Def looking forawrd to this for the variadic tuples once prettier supports it :-P another one to look out for that isn't obvious at first: type ReduceNextElement<
T extends readonly unknown[]
// eslint-disable-next-line prettier/prettier
> = T extends readonly [infer V, ...infer R] ? [V, R] : never Prettier will currently change this to type ReduceNextElement<T extends readonly unknown[]> = T extends readonly [
infer V,
...(infer R)
]
? [V, R]
: never; which produces a ts error: Where we expect the following: type Check = ReduceNextElement<[1, 2, 3]>; // [1, [2, 3]] |
Type annotations on catch clauses #8805 |
Labeled tuples not supported. |
Labeled tuples for |
This comment has been minimized.
This comment has been minimized.
Since Typescript official 4.0.2 was released to the masses yesterday, any update on when #8982 will be released? |
We are working for release 2.1(#8882), please wait. |
Hello @sosukesuzuki, I am still experiencing the issue reported by @bradennapier above, in which |
Figured it'd get missed ;) subtle difference but completely breaks inference. |
Can you raise another issue? I think we missed that |
TypeScript 4.0 beta has been released!
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/
We need to support new syntaxes:
note: We should wait typescript-eslint/typescript-eslint#2260 for default TS parser and babel/babel#11760 for babel-ts parser.
The text was updated successfully, but these errors were encountered: