Building a prefier type using typescripts Template literal type feature

后端 未结 0 750
鱼传尺愫
鱼传尺愫 2020-12-13 22:58

I would like to prefix all keys in an interface using the literal type feature, but my understanding of types is too limited.

What I got so far is the following:

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