helene
Version:
Real-time Web Apps for Node.js
10 lines (9 loc) • 373 B
TypeScript
import { IStorage } from '../types';
export declare class NodeStorage implements IStorage {
read(name: string): Promise<string>;
/**
* Fully write or rewrite the datafile, immune to crashes during the write operation (data will not be lost)
*/
write(name: string, data: string): Promise<void>;
append(name: string, data: string): Promise<void>;
}