We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45be329 + 481f7ec commit 332f7f5Copy full SHA for 332f7f5
types/index.d.ts
@@ -493,7 +493,7 @@ declare module 'mongoose' {
493
export type NumberSchemaDefinition = typeof Number | 'number' | 'Number' | typeof Schema.Types.Number;
494
export type StringSchemaDefinition = typeof String | 'string' | 'String' | typeof Schema.Types.String;
495
export type BooleanSchemaDefinition = typeof Boolean | 'boolean' | 'Boolean' | typeof Schema.Types.Boolean;
496
- export type DateSchemaDefinition = typeof NativeDate | 'date' | 'Date' | typeof Schema.Types.Date;
+ export type DateSchemaDefinition = DateConstructor | 'date' | 'Date' | typeof Schema.Types.Date;
497
export type ObjectIdSchemaDefinition = 'ObjectId' | 'ObjectID' | typeof Schema.Types.ObjectId;
498
499
export type SchemaDefinitionWithBuiltInClass<T> = T extends number
0 commit comments