Closed duailibe closed 6 years ago
What version of TypeScript are you using?
2.8.0-rc
What version of typescript-eslint-parser are you using?
typescript-eslint-parser
14.0.0
What code were you trying to parse?
class X { foo?: string; "foo-bar"?: string;
What did you expect to happen?
Either the ClassProperty has optional: true or its key for both cases
ClassProperty
optional: true
What happened?
In the first case, optional: true is set on the key, and in the second case it's set on the ClassProperty
cc @JamesHenry
What version of TypeScript are you using?
2.8.0-rc
What version of
typescript-eslint-parser
are you using?14.0.0
What code were you trying to parse?
What did you expect to happen?
Either the
ClassProperty
hasoptional: true
or its key for both casesWhat happened?
In the first case,
optional: true
is set on the key, and in the second case it's set on theClassProperty
cc @JamesHenry