diff --git a/src/internals/helpers.ts b/src/internals/helpers.ts index eaa5e0c..de87839 100644 --- a/src/internals/helpers.ts +++ b/src/internals/helpers.ts @@ -38,7 +38,7 @@ export type UnionToIntersection = ( ? intersection : never; -export type Prettify = { [K in keyof T]: T[K] } | never; +export type Prettify = { [K in keyof T]: Prettify } | never; export type RecursivePrettify = IsArrayStrict extends true ? RecursivePrettify[number]>[] diff --git a/test/objects.test.ts b/test/objects.test.ts index a60f1a3..cfcf6ba 100644 --- a/test/objects.test.ts +++ b/test/objects.test.ts @@ -929,7 +929,6 @@ describe("Objects", () => { a: string; b: { c: number; - } & { d: { 0: { f: boolean; @@ -946,7 +945,6 @@ describe("Objects", () => { a: string; b: { c: number; - } & { d: { 0: { f: boolean;