Skip to content

Commit

Permalink
Merge pull request #11026 from francescov1/fix-buffer-types
Browse files Browse the repository at this point in the history
types: handle buffer type
  • Loading branch information
vkarpov15 committed Dec 5, 2021
2 parents 7b0ae33 + 2013588 commit 934976a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,7 @@ declare module 'mongoose' {
T extends string | number | boolean | NativeDate | Function ? SchemaDefinitionWithBuiltInClass<T> :
T extends Schema<any, any, any> ? T :
T extends Map<any, any> ? SchemaDefinition<typeof Map> :
T extends Buffer ? SchemaDefinition<typeof Buffer> :
T extends object[] ? (AnyArray<Schema<any, any, any>> | AnyArray<SchemaDefinition<Unpacked<T>>> | AnyArray<SchemaTypeOptions<Unpacked<T>>>) :
T extends string[] ? AnyArray<SchemaDefinitionWithBuiltInClass<string>> | AnyArray<SchemaTypeOptions<string>> :
T extends number[] ? AnyArray<SchemaDefinitionWithBuiltInClass<number>> | AnyArray<SchemaTypeOptions<number>> :
Expand Down

0 comments on commit 934976a

Please sign in to comment.