diff --git a/index.d.ts b/index.d.ts index 3244b0f417d..9f7e1915146 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1189,9 +1189,9 @@ declare module 'mongoose' { } type SchemaDefinitionWithBuiltInClass = T extends number - ? (typeof Number | 'number' | 'Number') + ? (typeof Number | 'number' | 'Number' | typeof Schema.Types.Number) : T extends string - ? (typeof String | 'string' | 'String') + ? (typeof String | 'string' | 'String' | typeof Schema.Types.String) : (Function | string); type SchemaDefinitionProperty = T extends string | number | Function