Clarify illegal value definitions in schema.md; update notes on null, undefined, and nested arrays to enhance accuracy and readability of the WH Telemetry Protocol documentation.

This commit is contained in:
2025-07-08 11:54:21 +08:00
parent b615bfa9e2
commit d3b6425a66

View File

@ -272,8 +272,8 @@ type UserData = Record<string, any>
> [!IMPORTANT]
>
> - `null` 与 `undefined` 不被支持
> - 嵌套数组(如 `array<array<number>>`为非法类型
> - `null` 与 `undefined` 为非法值
> - 嵌套数组(如 `array<array<number>>`)为非法类型
### 字段级元数据
@ -311,8 +311,10 @@ type DataType =
| `irregular<enum:this>`
```
- `null` 和 `undefined` 是非法的
- 嵌套是非法的
> [!IMPORTANT]
>
> - `null` 与 `undefined` 为非法值
> - 嵌套数组(如 `array<array<number>>`)为非法类型
下面分别介绍各个类型