Key guard in TypeScript

后端 未结 0 1689
执笔经年
执笔经年 2020-12-17 23:53

I\'m trying to do something like a type guard, but instead of discarding types, discarding values already used for keys. Is this possible?

For example:



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