Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Parsing type aliases #17

Closed
madbence opened this issue Oct 4, 2018 · 1 comment · Fixed by #42
Closed

Parsing type aliases #17

madbence opened this issue Oct 4, 2018 · 1 comment · Fixed by #42
Labels

Comments

@madbence
Copy link
Contributor

madbence commented Oct 4, 2018

What version of TypeScript are you using?

3.0.3

What version of typescript-estree are you using?

1.0.0

What code were you trying to parse?

type Foo<T> = T;

What did you expect to happen?

parse it as a TypeAlias (like with flow)? or maybe this can be fixed on eslint-level. see eslint/eslint#10922 and eslint/eslint#10923

What actually happened?

it was parsed as a VariableDeclaration (relevant part from convert.js)

my problem is that the code above will trigger a space-infix-ops error in eslint, because this code marks it as an error.

i'm not sure what would be the proper solution, as neither the TypeAlias nor VariableDeclarator with typeParameters are estree standards...

@JamesHenry
Copy link
Owner

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants