MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / createEmptyEditHistory

Function createEmptyEditHistory

packages/studio/src/utils/editHistory.ts:75–82  ·  view source on GitHub ↗
(_options?: EditHistoryOptions)

Source from the content-addressed store, hash-verified

73}
74
75export function createEmptyEditHistory(_options?: EditHistoryOptions): EditHistoryState {
76 return {
77 version: 1,
78 updatedAt: 0,
79 undo: [],
80 redo: [],
81 };
82}
83
84export function buildEditHistoryEntry(input: BuildEditHistoryEntryInput): EditHistoryEntry {
85 const files: Record<string, EditHistoryFileSnapshot> = {};

Calls

no outgoing calls

Tested by

no test coverage detected