Added options for selectFields and populateFields, and mongoose reference

This commit is contained in:
linusbrolin
2016-08-09 16:52:31 +02:00
parent a8ad49221d
commit 17765b050a
2 changed files with 6 additions and 3 deletions

View File

@@ -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;

View File

@@ -52,6 +52,9 @@ declare module 'mongoose' {
usernameQueryFields: Array<string>;
selectFields?: string;
populateFields?: string;
usernameLowerCase?: boolean;
hashField?: string;