Skip to content

Support for imported types #3

@matt-pawley

Description

@matt-pawley

Hi, we are consider using typeconv on our project. Although we heavily use imported types which don't seem to be working:

A minimal reproducible example:

// a.ts

export type Foo = number;
// b.ts

import { Foo } from './a';

export type Bar = {
  foo: Foo;
};

Then running npx typeconv -f ts -t st -o out 'b.ts' produces:

Reference to missing type: Foo, ignoring

Is there anything I'm doing wrong ? Or is this something thats not currently supported?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions