IoUpdateAnnotation
当你需要复用类型结构时使用此类型别名。
IoUpdateAnnotation| Name | Type |
|---|---|
| action | string |
| meta | Readonly<Record<string, unknown>> |
import type { IoUpdateAnnotation } from '@iostore/store/patches';
let value!: IoUpdateAnnotation;console.log(value);- 避免在用户文档中展开过于复杂的类型细节。
- 调整类型别名时注意下游兼容性。
相关 API
Section titled “相关 API”packages/io/src/lib/utils/types/types.ts