type-tls
Version:
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
54 lines (26 loc) • 747 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [type-tls](./type-tls.md) > [getNameOfType](./type-tls.getnameoftype.md)
## getNameOfType() function
获取 类型的字符串表示
**Signature:**
```typescript
export declare function getNameOfType(t: ExactType): ExactTypeName;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
t
</td><td>
[ExactType](./type-tls.exacttype.md)
</td><td>
一个 ExactType 类型的值 t 的字符串表示的类型
</td></tr>
</tbody></table>
**Returns:**
[ExactTypeName](./type-tls.exacttypename.md)