Skip to content

Commit 1200a25

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5945f6d commit 1200a25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/typeUtils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ 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]: /**
23+
[Prop in keyof T
24+
/**
2425
* Example:
2526
* IfEquals<{readonly a: string}, Record<'a',string> -> returns false
26-
*/ IfEquals<Pick<T, Prop>, Record<Prop, T[Prop]>> extends false
27+
*/]: IfEquals<Pick<T, Prop>, Record<Prop, T[Prop]>> extends false
2728
? never
2829
: Prop;
2930
}[keyof T];

0 commit comments

Comments
 (0)