TypeScript: Turning a generic string array into a union of string literals

前端 未结 0 386
一个人的身影
一个人的身影 2021-01-26 07:45

I found that when I use a generic variadic, I can successfully coerce a function\'s input of strings into a Union of the literal values passed



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