2
Typescript Example #2.
source link: https://dev.to/baenencalin/typescript-example-2-42n1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Typescript Example #2.
// An example of using generics in a type union.
// A compact version of my Option<T> type from
// "Typescript Example #1." (https://dev.to/baenencalin/typescript-example-1-ia3).
type Option<T> = T|null;
Enter fullscreen modeExit fullscreen mode
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK