Restricting an interface to specific keys from a union type

后端 未结 0 710
傲寒
傲寒 2021-01-07 19:56

I\'ve got a union type listing some allowed keys : type AllowedKeys = "a" | "b";

Somewhere else, I\'m declaring an interface, and I w

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