mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added options for selectFields and populateFields, and mongoose reference
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
/// <reference path="../passport/passport.d.ts" />
|
||||
/// <reference path="../passport-local/passport-local.d.ts" />
|
||||
/// <reference path="../mongoose/mongoose.d.ts" />
|
||||
|
||||
/**
|
||||
* Created by Linus Brolin <https://github.com/linusbrolin/>.
|
||||
@@ -54,9 +55,8 @@ options.saltField = 'salt';
|
||||
options.saltlen = 32;
|
||||
options.attemptsField = 'attempts';
|
||||
options.lastLoginField = 'last';
|
||||
// TODO:
|
||||
// options.selectFields = 'undefined';
|
||||
// options.populateFields = 'undefined';
|
||||
options.selectFields = 'undefined';
|
||||
options.populateFields = 'undefined';
|
||||
options.encoding = 'hex';
|
||||
options.limitAttempts = false;
|
||||
options.maxAttempts = Infinity;
|
||||
|
||||
@@ -52,6 +52,9 @@ declare module 'mongoose' {
|
||||
|
||||
usernameQueryFields: Array<string>;
|
||||
|
||||
selectFields?: string;
|
||||
populateFields?: string;
|
||||
|
||||
usernameLowerCase?: boolean;
|
||||
|
||||
hashField?: string;
|
||||
|
||||
Reference in New Issue
Block a user