Skip to content

Commit ada4797

Browse files
committed
re-format code
1 parent 2d90f04 commit ada4797

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/BaseComponent.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
* Non-readonly non-method keys
2020
*/
2121
type WritableKeys<T> = {
22-
[Prop in keyof T]: (
23-
(<G>() => G extends Pick<T, Prop> ? 1 : 2) extends
24-
(<G>() => G extends Record<Prop, T[Prop]> ? 1 : 2)
25-
? true
26-
: false
22+
[Prop in keyof T]: (
23+
(<G>() => G extends Pick<T, Prop> ? 1 : 2) extends (
24+
<G>() => G extends Record<Prop, T[Prop]> ? 1 : 2
25+
) ? true : false
2726
) extends false
2827
? never
2928
: (T[Prop] extends Function | null ? never : Prop);
30-
}[keyof T];
29+
}[keyof T];
3130

3231

3332
/**

0 commit comments

Comments
 (0)