跳转到内容

IoHistoryEntry

当你需要复用类型结构时使用此类型别名。

IoHistoryEntry
NameType
idstring
timestampnumber
updateIoUpdate
patchDiffsIoPatchDiff[]
snapshotBeforeunknown
snapshotAfterunknown
perfIoDevtoolsPerfSample
import type { IoHistoryEntry } from '@iostore/devtools';
let value!: IoHistoryEntry;
console.log(value);
  • 避免在用户文档中展开过于复杂的类型细节。
  • 调整类型别名时注意下游兼容性。
  • packages/io-devtools/src/lib/types.ts