mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
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.
This commit is contained in:
committed by
Masahiro Wakame
parent
df9065dc6e
commit
93ca28cc11
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user