Differentiate between two variables of type string in TypeScript

前端 未结 0 1582
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 09:43

It\'s possible to extend the type string in order to avoid an assignment of a string variable to another string variable, throwing an assignment error?

For example:

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