[@types/mongoose] Declare a right type for _id (#12462)

* Declare a right type for _id

* Delete the error definition
This commit is contained in:
TonyYang
2016-11-07 22:35:49 +08:00
committed by Masahiro Wakame
parent f555feb4fc
commit 393ada1ee2
2 changed files with 1 additions and 2 deletions

2
mongoose/index.d.ts vendored
View File

@@ -871,7 +871,7 @@ declare module "mongoose" {
/** Hash containing current validation errors. */
errors: Object;
/** This documents _id. */
_id: any;
_id: mongodb.ObjectID;
/** Boolean flag specifying if the document is new. */
isNew: boolean;
/** The documents schema. */

View File

@@ -23,7 +23,6 @@ import { Strategy as LocalStrategy } from 'passport-local';
//#region Test Models
interface User extends PassportLocalDocument {
_id: string;
username: string;
hash: string;
salt: string;