Skip to content

Commit d94f1b7

Browse files
author
Poorshad
committed
reduce maxDotNotationDepth to improve performance and reduce instantiations
1 parent ac66c7b commit d94f1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ declare module 'mongoose' {
732732
: T extends object
733733
? { [K in keyof T]: ExtractNestedArrayElement<T[K]> }
734734
: T;
735-
type DotnotationMaximumDepth = 4;
735+
type DotnotationMaximumDepth = 3;
736736
/**
737737
* Create dot path for nested objects
738738
* It creates dot notation for arrays similar to mongodb. For example { a: { c: { b: number}[] }[] } => 'a.c.b': number, 'a.c': { b: number }[]

0 commit comments

Comments
 (0)