Skip to content

Commit

Permalink
Merge pull request #156 from ypicard/master
Browse files Browse the repository at this point in the history
fix: update paginate options typings (fixes #154)
  • Loading branch information
aravindnc authored Feb 5, 2022
2 parents 9cf1663 + d0615a2 commit b505bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import mongoose = require('mongoose');
declare function _(schema: mongoose.Schema): void;
export = _;
declare namespace _ {
function paginate(schema: mongoose.Schema): void;
const paginate: { options: mongoose.PaginateOptions };
class PaginationParameters<T, O extends mongoose.PaginateOptions> {
constructor(request: { query?: Record<string, any> });
getOptions: () => O;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b505bee

Please sign in to comment.