Can I create a type guard for a string union type that doesn't require duplicate data?

前端 未结 0 982
独厮守ぢ
独厮守ぢ 2021-01-25 20:03

I have multiple string union types that are combined into an overarching union type:

type optionsAll = optionsA | optionsB | optionsC
type optionsA = \'a\' | \'b\         


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