Fixed mongodb typings implicit any error

This commit is contained in:
Jordan Van Walleghem
2018-06-18 18:43:19 +02:00
parent 85ebc14bef
commit 48996f6e0b
2 changed files with 2 additions and 2 deletions

View File

@@ -1252,7 +1252,7 @@ export class Cursor<T = Default> extends Readable {
/** http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#limit */
limit(value: number): Cursor<T>;
/** http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#map */
map<U>(transform: (T) => U): Cursor<U>;
map<U>(transform: (el: T) => U): Cursor<U>;
/** http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#max */
max(max: number): Cursor<T>;
/** http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#maxAwaitTimeMS */

View File

@@ -4,7 +4,7 @@
"lib": [
"es6"
],
"noImplicitAny": false,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,