typeconv icon indicating copy to clipboard operation
typeconv copied to clipboard

Invalid TS generated from ST

Open arv opened this issue 2 years ago • 0 comments

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';

arv avatar Feb 01 '22 22:02 arv