Public typealias

Signature
type TLCommandHandler<Data> = {
  do: (data: Data) => void
  undo: (data: Data) => void
  redo?: (data: Data) => void
  squash?: (prevData: Data, nextData: Data) => Data
}
Source

packages/editor/src/lib/editor/types/history-types.ts

TLCommandTLCommandHistoryOptions