From 93ca28cc11062e4aeba9ce8c5fccea490e57f919 Mon Sep 17 00:00:00 2001 From: Brian Pfretzschner Date: Wed, 8 Jun 2016 12:18:05 +0200 Subject: [PATCH] Fixed two any type annotations (#9553) Fixed two TypeScript errors when noImplicitAny is set to true: .../typings/globals/pouchdb/pouch/index.d.ts(178,14): error TS7006: Parameter 'any' implicitly has an 'any' type. .../typings/globals/pouchdb/pouch/index.d.ts(229,18): error TS7010: 'emit', which lacks return-type annotation, implicitly has an 'any' return type. --- pouchDB/pouch.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pouchDB/pouch.d.ts b/pouchDB/pouch.d.ts index 0360e02b65..e601bcaa53 100644 --- a/pouchDB/pouch.d.ts +++ b/pouchDB/pouch.d.ts @@ -178,7 +178,7 @@ interface PouchRevsDiffOptions { interface PouchReplicateOptions { continuous?: boolean; - onChange?: (any) => void; + onChange?: (e: any) => void; filter?: any; // Can be either string or PouchFilter complete?: (err: PouchError, res: PouchChanges) => void; } @@ -229,4 +229,4 @@ declare module 'pouchdb' { // emit is the function that the PouchFilter.map function should call in order to add a particular item to // a filter view. // -declare function emit(key: any, value: any); +declare function emit(key: any, value: any): void;