Interface SnapshotProvider
interface SnapshotProvider { file: string; read(msg: string): string; save(): void | Promise<void>; snap(data: string,
msg: string): void; } Properties
Methods
read
- read(msg): string
Returns string
save
- save(): void | Promise<void>
Returns void | Promise<void>
snap
- snap(data, msg): void
Returns void
Interface provided by the class set in the
snapshotProvider
option.save()
may be an async method, butread()
must be synchronous.