Interface provided by the class set in the snapshotProvider option. save() may be an async method, but read() must be synchronous.

interface SnapshotProvider {
    file: string;
    read(msg: string): string;
    save(): void | Promise<void>;
    snap(data: string, msg: string): void;
}

Implemented by

Properties

Methods

Properties

file: string

Methods