Closed smashercosmo closed 5 years ago
What version of TypeScript are you using? v3.1.6
What version of typescript-eslint-parser are you using? v21.0.1
typescript-eslint-parser
What code were you trying to parse?
type Hello = { hi: string, } type Foo = { bar: Hello['hi'], }
What did you expect to happen? No errors
What happened?
SyntaxError: Unexpected token, expected "]"
Seems like it's not a problem with typescript-eslint-parser, but with Babel.
What version of TypeScript are you using? v3.1.6
What version of
typescript-eslint-parser
are you using? v21.0.1What code were you trying to parse?
What did you expect to happen? No errors
What happened?