Complentary type to template literal type

前端 未结 0 1629
半阙折子戏
半阙折子戏 2020-12-08 11:58

With Typescript 4.1+ it\'s possible to create template literal types. One possible application:

type StartsWith

= `${P}${string}`;

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