Add custom PaginateOptions for all queries (#44129)

As of mongoose-paginate-v2 documentation https://github.com/aravindnc/mongoose-paginate-v2#set-custom-default-options-for-all-queries
This commit is contained in:
Kerollos Magdy 2020-05-05 01:46:32 +02:00 committed by GitHub
parent 291d336a53
commit a023bf6430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,3 +90,6 @@ declare module 'mongoose' {
import mongoose = require('mongoose');
declare function _(schema: mongoose.Schema): void;
export = _;
declare namespace _ {
const paginate: { options: mongoose.PaginateOptions };
}