mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
[@types/mongoose] Declare a right type for _id (#12462)
* Declare a right type for _id * Delete the error definition
This commit is contained in:
committed by
Masahiro Wakame
parent
f555feb4fc
commit
393ada1ee2
2
mongoose/index.d.ts
vendored
2
mongoose/index.d.ts
vendored
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user