Home > @taiyuuki/utils > throw_type_error
throw_type_error() function
该函数抛出带有特定消息的 TypeError。
Signature:
typescript
declare function throw_type_error(type: string, name: string): void;declare function throw_type_error(type: string, name: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| type | string | 表示预期数据类型的字符串 |
| name | string | 参数是一个字符串,表示预期类型的名称。 |
Returns:
void