UNPKG

type-tls

Version:

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

54 lines (26 loc) 678 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [type-tls](./type-tls.md) &gt; [getTypeByName](./type-tls.gettypebyname.md) ## getTypeByName() function 根据类型的名字获取其对应的类 **Signature:** ```typescript export declare function getTypeByName(typeName: string): Function | undefined; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> typeName </td><td> string </td><td> 类型的名字 </td></tr> </tbody></table> **Returns:** Function \| undefined