machinomy
Version:
Micropayments powered by Ethereum
12 lines (11 loc) • 451 B
TypeScript
import * as Datastore from 'nedb';
export default class NedbDatastore {
datastore: Datastore;
constructor(datastore: Datastore);
find<A>(query: any): Promise<Array<A>>;
findOne<A>(query: any): Promise<A>;
update<A>(query: any, updateQuery: any, options?: Nedb.UpdateOptions): Promise<number>;
insert<A>(newDoc: A): Promise<void>;
count(query: any): Promise<number>;
remove(query: any, options: any): Promise<number>;
}