Derive TypeScript interface from discriminiated union

前端 未结 0 1235
忘了有多久
忘了有多久 2020-12-17 00:47

Consider the following TypeScript code:

type AccountType = "staff" | "user"

type StaffAccountName = "owner" | "CEO" |         


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