grantila / grantila/typeconv

Invalid TS generated from ST

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Using:

```
typeconv 1.7.0
node v17.4.0
```

input.ts

```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:

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

The generated import declaration should be:

```ts
import { suretype, v, compile} from 'suretype';
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.