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
#43567
How is this supposed to act?
type T05<T extends any[]> = Parameters<(x: string, ...args: T) => void>; // is this a labeled or non-labeled tuple? type T06 = T05<[number]>;
T06 is non-labeled.
T06
Labeling is not a dependable process.
But is it an error?
What is the original thing we're trying to fix?
// This is an error today. type Tup<T extends any[]> = [one: 1, ...T];
Labels should be preserved through spreads.
...T
Really what this comes down to is
...args: T
Should an unlabeled spread be an error if everything else has an error?
More likely that the user was just confused, the error message didn't tell them what to do. This even confused the team.
Just make the error message good?
Could just remove the rule - no reason we couldn't ease it.
Let's keep it in place, open an issue to add a quick fix maybe, give a better error message.
importsNotUsedAsValues
#43393
import { readFile } from "fs" // turns into import "fs"
because it just preserves the imports statements for side-effects.
import/import type
type
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Intended Behavior of Labeled Tuples
#43567
How is this supposed to act?
T06
is non-labeled.Labeling is not a dependable process.
But is it an error?
What is the original thing we're trying to fix?
Labels should be preserved through spreads.
...T
which might be dumb because it might disappear.Really what this comes down to is
...T
must be a...args: T
instead or if we can be more lax.Should an unlabeled spread be an error if everything else has an error?
More likely that the user was just confused, the error message didn't tell them what to do. This even confused the team.
Just make the error message good?
Could just remove the rule - no reason we couldn't ease it.
Let's keep it in place, open an issue to add a quick fix maybe, give a better error message.
importsNotUsedAsValues
improvements#43393
because it just preserves the imports statements for side-effects.
importsNotUsedAsValues
today is a breaking change.import/import type
statement.type
as a modifier on named imports?The text was updated successfully, but these errors were encountered: