peitalin / vim-jsx-typescript

React JSX syntax highlighting for vim and Typescript
The Unlicense
305 stars 29 forks source link

Importing Type in TSX does not works #40

Closed ayrbox closed 1 year ago

ayrbox commented 3 years ago

When importing type only in tsx file. It expects to have =. Needs condition to skip the check if type comes with import.

import type { User } from 'next-auth';
src/pages/index.tsx|2 col 13| '=' expected.