Dynamically access types from an `import * as` in Typescript?

后端 未结 0 1110
孤独总比滥情好
孤独总比滥情好 2021-01-18 04:04

Say I have a models.ts like so:

class Foo {
    name?: string;
}

type FooDocument = { name: string };

export { Foo, FooDocument };
相关标签:
回答
  • 消灭零回复
提交回复
热议问题