Typescript: how to prevent mixture of custom string types?

后端 未结 0 619
借酒劲吻你
借酒劲吻你 2020-12-19 04:30

Suppose we have two custom types, both derived from string, and two corresponding variables.

type A = string;
let a: A = "a";

type B = string;
let          


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