How to understand NonNullable in typescript?

前端 未结 0 1483
抹茶落季
抹茶落季 2020-12-04 23:39

In TS, NonNullable is defined as

type NonNullable = T extends null | undefined ? never : T

One example,

type T0 = Non         


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