tldraw/state/sessions/base-session.ts
2021-05-13 07:44:52 +01:00

17 lines
297 B
TypeScript

import { Data } from "types"
export default class BaseSession {
constructor(data: Data) {}
update(data: Data, ...args: unknown[]) {
// Update the state
}
complete(data: Data, ...args: unknown[]) {
// Create a command
}
cancel(data: Data) {
// Clean up the change
}
}