Transform a JS array of strings into a union with IO-TS

后端 未结 0 726
孤街浪徒
孤街浪徒 2021-01-22 03:43

I\'m using io-ts and i\'m wondering if there\'s a way to turn an array of strings (literals) into a union of such literals. For example:



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