Typescript: create extension method for type alias

后端 未结 0 469
别那么骄傲
别那么骄傲 2021-01-13 05:46

I create a type alias as follow

export type Nullable = T | null | undefined;

I would like to have an extension method hasValue

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