Skip to content

Commit

Permalink
add type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
oadpoaw committed Feb 10, 2021
1 parent 610a6f5 commit eab4481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare module 'rate-limit-mongo' {
* This method is promisified (when `util.promisify` is presented (node.js >= 8)).
* @param callback
*/
getClient(callback: (client: MongoClient | null) => any): void;
getClient(callback: (collection: null, client: MongoClient | null) => any): void;

}

Expand Down

0 comments on commit eab4481

Please sign in to comment.