mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
616 B
TypeScript
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;
|
|
}
|