diff --git a/source/paths.d.ts b/source/paths.d.ts index 7e9f36599..19e6cfe41 100644 --- a/source/paths.d.ts +++ b/source/paths.d.ts @@ -12,9 +12,9 @@ Paths options. */ export type PathsOptions = { /** - The maximum depth to recurse when searching for paths. + The maximum depth to recurse when searching for paths. Range: 0 ~ 10. - @default 10 + @default 5 */ maxRecursionDepth?: number; @@ -53,7 +53,7 @@ export type PathsOptions = { }; type DefaultPathsOptions = { - maxRecursionDepth: 10; + maxRecursionDepth: 5; bracketNotation: false; }; diff --git a/test-d/paths.ts b/test-d/paths.ts index 543265c5a..a539a84f9 100644 --- a/test-d/paths.ts +++ b/test-d/paths.ts @@ -111,7 +111,7 @@ expectAssignable({} as MyEntityPaths); // By default, the recursion limit should be reasonably long type RecursiveFoo = {foo: RecursiveFoo}; -expectAssignable>('foo.foo.foo.foo.foo.foo.foo.foo'); +expectAssignable>('foo.foo.foo.foo.foo.foo.foo.foo'); declare const recursion0: Paths; expectType<'foo'>(recursion0);