Template Literal Types Typescript repeat

前端 未结 0 1576
一整个雨季
一整个雨季 2020-12-17 15:34

Is it possible to build a repeat with template literal types? For example:

type Hex = \'a\' | \'b\' | \'c\'| ...;
type Id = `${Hex}${Hex}...` // Here I want t         


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