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