mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
[mongodb] use T as type rather than value
This commit is contained in:
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@@ -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: (document: 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 */
|
||||
|
||||
Reference in New Issue
Block a user