Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.65 KB

File metadata and controls

13 lines (8 loc) · 1.65 KB

String to Union 中等 #union #string

by Andrey Krasovsky @bre30kra69cs

接受挑战    English 日本語

实现一个将接收到的String参数转换为一个字母Union的类型。

例如

type Test = '123';
type Result = StringToUnion<Test>; // expected to be "1" | "2" | "3"

返回首页 分享你的解答 查看解答