derzombiiie 25fc801fd3 node!
2021-08-05 20:13:12 +02:00

14 lines
370 B
TypeScript

declare class JSONdb {
constructor(filePath: string, options?: { asyncWrite?: boolean, syncOnWrite?: boolean });
set(key: string, value: object) : void;
get(key: string) : object | undefined;
has(key: string) : boolean;
delete(key: string) : boolean | undefined;
deleteAll() : this;
sync() : void;
JSON(storage?: object) : object;
}
export = JSONdb;