This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 75
TSPropertySignature has no computed flag #262
Labels
Comments
Typescript currently uses |
@azz @JamesHenry interface TSPropertySignature {
type: 'TSPropertySignature';
optional: boolean;
computed: boolean;
key: Identifier;
typeAnnotation: TypeAnnotation
}
interface TSMethodSignature {
type: 'TSMethodSignature';
optional: boolean;
computed: boolean;
key: Identifier;
params: [ Expression ]
typeAnnotation: TypeAnnotation
typeParameter: [ TypeParameter ]
}
interface TSIndexSignature {
type: 'TSIndexSignature';
index: Identifier;
typeAnnotation: TypeAnnotation
}
interface TSConstructSignature {
type: 'TSConstructSignature';
params: [ Expression ]
typeAnnotation: TypeAnnotation
typeParameter: [ TypeParameter ]
} |
soda0289
added a commit
that referenced
this issue
May 7, 2017
soda0289
added a commit
that referenced
this issue
May 8, 2017
soda0289
added a commit
that referenced
this issue
May 28, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of TypeScript are you using?
2.3.2
What version of
typescript-eslint-parser
are you using?a294afa
What code were you trying to parse?
What did you expect to happen?
TSPropertySignature
to have acomputed: true
property.What happened?
No
computed
property.In prettier, we currently print this as
var x: { y: any }
, which is incorrect.prettier/prettier#1480
The text was updated successfully, but these errors were encountered: