UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 513 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / assertString # Function: assertString() ```ts function assertString(str): void ``` 断言传入的是一个字符串。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `str` | `string` | 需要断言的字符串。 | ## Returns `void` ## Defined in [src/std/assert/assertions.ts:7](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/assert/assertions.ts#L7)