Skip to content

Commit c88373d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 85d1eef commit c88373d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/util/typeUtils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ type IfEquals<T, U, Y = true, N = false> = (<G>() => G extends T
2020
: N;
2121

2222
export type ExtractMutable<T> = {
23-
[Prop in keyof T
24-
/**
23+
[Prop in keyof T]: /**
2524
* Example:
2625
* IfEquals<{readonly a: string}, Record<'a',string> -> returns false
27-
*/]: IfEquals<Pick<T, Prop>, Record<Prop, T[Prop]>> extends false
26+
*/ IfEquals<Pick<T, Prop>, Record<Prop, T[Prop]>> extends false
2827
? never
2928
: Prop;
3029
}[keyof T];

0 commit comments

Comments
 (0)