Using typescript to get type of field without creating an instance

后端 未结 0 1629
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 04:15

I have this:

const _fakeInstance = ({} as any as MutationResolvers).register;
export type RegisterType = typeof _fakeInstance;

which feels very a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题