Skip to content

Commit d88f981

Browse files
authored
Merge pull request #10515 from andreialecu/perf-types
perf: improve typescript type checking performance
2 parents f1e0de1 + 9c41c19 commit d88f981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,9 +2494,9 @@ declare module 'mongoose' {
24942494
? mongodb.Condition<T[P]>
24952495
: mongodb.Condition<T[P] | string>;
24962496
} &
2497-
mongodb.RootQuerySelector<T>;
2497+
mongodb.RootQuerySelector<DocumentDefinition<T>>;
24982498

2499-
export type FilterQuery<T> = _FilterQuery<DocumentDefinition<T>>;
2499+
export type FilterQuery<T> = _FilterQuery<T>;
25002500

25012501
type NumericTypes = number | mongodb.Decimal128 | mongodb.Double | mongodb.Int32 | mongodb.Long;
25022502

0 commit comments

Comments
 (0)