type-tls
Version:
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
16 lines (9 loc) • 477 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [type-tls](./type-tls.md) > [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)