TypeScript: Factory function for union types

前端 未结 0 907
眼角桃花
眼角桃花 2021-01-15 04:06

I have a custom Factory type that lets me create factory functions.

export type Factory = (state?: Partial) => T;

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