UNPKG

type-tls

Version:

type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等

16 lines (9 loc) 477 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [ReplaceUndefined](./type-tls.replaceundefined.md) ## ReplaceUndefined type 可将源类型 SourType 中的 undefined 替换为 新的类型 NewType **Signature:** ```typescript export type ReplaceUndefined<SourType, NewType> = Replace<SourType, undefined, NewType>; ``` **References:** [Replace](./type-tls.replace.md)