From 6be2710d2853422d4d973774f68a6090816444b6 Mon Sep 17 00:00:00 2001 From: pubkey Date: Tue, 4 Feb 2020 17:25:16 +0100 Subject: [PATCH] Fix typings, MinimongoCollection needs generic --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6da2701..4053ee1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -24,10 +24,10 @@ export class MinimongoDb { getCollectionNames(): string[] localDb?: MinimongoDb remoteDb?: MinimongoDb - collections: { [collectionName: string]: MinimongoCollection } + collections: { [collectionName: string]: MinimongoCollection } } -export interface MinimongoCollection { +export interface MinimongoCollection { find(selector: any, options?: MinimongoCollectionFindOptions): { fetch(success: (items: ItemType[]) => void, error: (err: any) => void): void }