UNPKG

node-json-db

Version:

Database using JSON file as storage for Node.JS

9 lines (8 loc) 309 B
import { IFileAdapter } from "../IAdapter"; export declare class FileAdapter implements IFileAdapter<string> { readonly filename: string; private readonly fsync; constructor(filename: string, fsync: boolean); readAsync(): Promise<string | null>; writeAsync(data: string): Promise<void>; }