Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Saveable

Hierarchy

Index

Properties

Readonly autoSave

autoSave: "on" | "off"

Readonly dirty

dirty: boolean

Readonly onDirtyChanged

onDirtyChanged: Event<void>

Functions

apply

get

getDirty

  • getDirty(arg: any): Saveable | undefined

is

  • is(arg: any): arg is Saveable

isDirty

  • isDirty(arg: any): boolean

isSource

  • isSource(arg: any): arg is SaveableSource

shouldSave

  • shouldSave(saveable: Saveable, cb: () => MaybePromise<boolean | undefined>): Promise<boolean | undefined>

Methods

Optional applySnapshot

  • applySnapshot(snapshot: object): void

Optional createSnapshot

  • createSnapshot(): object

Optional revert

save