Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid TS generated from ST #19

Open
arv opened this issue Feb 1, 2022 · 0 comments
Open

Invalid TS generated from ST #19

arv opened this issue Feb 1, 2022 · 0 comments

Comments

@arv
Copy link

arv commented Feb 1, 2022

Using:

typeconv 1.7.0
node v17.4.0

input.ts

export type T = number | string;

And on the command line:

npx typeconv -f ts -t st -o out input.ts

Gives a file out/input.ts that contains this invalid import declaration:

import { suretype as , v as , compile as  } from 'suretype';

The generated import declaration should be:

import { suretype, v, compile} from 'suretype';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant