Skip to content

Commit

Permalink
deep prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
eloytoro committed Mar 28, 2023
1 parent 92009ca commit 5d69b92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/internals/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type UnionToIntersection<union> = (
? intersection
: never;

export type Prettify<T> = { [K in keyof T]: T[K] } | never;
export type Prettify<T> = { [K in keyof T]: Prettify<T[K]> } | never;

export type RecursivePrettify<T> = IsArrayStrict<T> extends true
? RecursivePrettify<Extract<T, readonly any[]>[number]>[]
Expand Down
2 changes: 0 additions & 2 deletions test/objects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@ describe("Objects", () => {
a: string;
b: {
c: number;
} & {
d: {
0: {
f: boolean;
Expand All @@ -946,7 +945,6 @@ describe("Objects", () => {
a: string;
b: {
c: number;
} & {
d: {
0: {
f: boolean;
Expand Down

0 comments on commit 5d69b92

Please sign in to comment.