A way to distribute string union to another Type

后端 未结 0 1698
生来不讨喜
生来不讨喜 2020-11-21 22:14

I currently have some Typescript code that looks like this :

type UserRole = "admin" | "partner" | "associate";

type User

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