TypeScript Define Single Type for Union Types

前端 未结 0 1540
半阙折子戏
半阙折子戏 2020-12-09 21:56

In my TypeScript I have many methods like this and in any method witch have the same parameter or return type I should repeat these union types:

foo(bar: \'a\         


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