Skip to content

Commit 61ad24d

Browse files
committed
fix(index.d.ts): allow SchemaTypes.Mixed for all schema definition properties to allow using union types
Fix #10900
1 parent ba7147c commit 61ad24d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,8 @@ declare module 'mongoose' {
13981398
SchemaTypeOptions<T extends undefined ? any : T>[] |
13991399
Function[] |
14001400
SchemaDefinition<T> |
1401-
SchemaDefinition<T>[];
1401+
SchemaDefinition<T>[] |
1402+
typeof SchemaTypes.Mixed;
14021403

14031404
type SchemaDefinition<T = undefined> = T extends undefined
14041405
? { [path: string]: SchemaDefinitionProperty; }

0 commit comments

Comments
 (0)