Why is a typed string literal seen as (pure) string in TypeScript?

后端 未结 0 623
礼貌的吻别
礼貌的吻别 2020-12-04 18:14

If I have this pretty straight forward TypeScript code:

type example = \'BOOLEAN\' | \'MULITSELECT\' | \'\';

interface IObjectExample {
    a: string,
    re         


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