DefinitelyTyped/types/nedb-logger/index.d.ts
2017-10-22 15:22:50 -07:00

19 lines
616 B
TypeScript

// Type definitions for NeDB Logger 1.8
// Project: https://github.com/louischatriot/nedb-logger
// Definitions by: Joe vanderstelt <https://github.com/thisboyiscrazy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = NeDBLoggerDataStore;
export as namespace NedbLogger;
declare namespace NeDBLoggerDataStore { }
declare class NeDBLoggerDataStore {
constructor(path?: string | { filename: string });
/**
* Insert a new document
* @param cb Optional callback, signature: err, insertedDoc
*/
insert<T>(newDoc: T, cb?: (err: Error, document: T) => void): void;
}