IoDevtoolsState
当你需要复用类型结构时使用此类型别名。
IoDevtoolsState| Name | Type |
|---|---|
| enabled | boolean |
| paused | boolean |
| cursor | number |
| history | readonly IoHistoryEntry[] |
| errors | readonly unknown[] |
| links | IoLinkInfo |
| perf | { recent: ReadonlyArray<IoDevtoolsPerfSample>; summary: IoDevtoolsPerfSummary; } |
import type { IoDevtoolsState } from '@iostore/devtools';
let value!: IoDevtoolsState;console.log(value);- 避免在用户文档中展开过于复杂的类型细节。
- 调整类型别名时注意下游兼容性。
相关 API
Section titled “相关 API”packages/io-devtools/src/lib/types.ts