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
#58829
When you have isolatedDeclarations, you can't use computed property names in object literals and classes.
isolatedDeclarations
We basically said they're not supported under isolatedDeclarations.
This proposal is to support computed property names under isolatedDeclarations by introducing a new syntactic form.
export const obj = { [someValue satisfies keyof]: 123, };
Idea is this should be transformed into the following declaration file:
export declare const obj: { [someValue]: number; };
Under this, someValue must be a singleton/unit type.
someValue
What is the specific use-case here?
Do we really need new syntax for ID?
Why can't we just error in cases when an "optimistic inference" would not succeed?
Why can't we just emit the expression as-is always?
typeof
type
package.json
node_modules
node16
#58825
realpath
#58729
Deferred
deferred
Define a helper function called deferred that just takes and returns the function.
function deferred<T extends (...args: any[]) => any>(deferred fn: T): T { return fn; }
tinacms
The text was updated successfully, but these errors were encountered:
satisfies
No branches or pull requests
Syntactic Form for Preserving Computed Property Names
#58829
When you have
isolatedDeclarations
, you can't use computed property names in object literals and classes.We basically said they're not supported under
isolatedDeclarations
.This proposal is to support computed property names under
isolatedDeclarations
by introducing a new syntactic form.Idea is this should be transformed into the following declaration file:
Under this,
someValue
must be a singleton/unit type.What is the specific use-case here?
isolatedDeclarations
.Do we really need new syntax for ID?
Why can't we just error in cases when an "optimistic inference" would not succeed?
Why can't we just emit the expression as-is always?
typeof
anyhow.Only Look up
type
frompackage.json
when innode_modules
(and innode16
)#58825
package.json
.package.json
farther up the spine.node_modules
.node_modules
?realpath
and figure out where the actual file is.Analyze Control Flow Effects of Callbacks
#58729
Deferred
helper conflicting with libraries using this type.deferred
?Define a helper function called
deferred
that just takes and returns the function.deferred
will need to be added.tinacms
examples.deferred
and it's not deferrable?deferred
affect assignability?The text was updated successfully, but these errors were encountered: