We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d90f04 commit ada4797Copy full SHA for ada4797
src/BaseComponent.ts
@@ -19,15 +19,14 @@
19
* Non-readonly non-method keys
20
*/
21
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
+ [Prop in keyof T]: (
+ (<G>() => G extends Pick<T, Prop> ? 1 : 2) extends (
+ <G>() => G extends Record<Prop, T[Prop]> ? 1 : 2
+ ) ? true : false
27
) extends false
28
? never
29
: (T[Prop] extends Function | null ? never : Prop);
30
- }[keyof T];
+}[keyof T];
31
32
33
/**
0 commit comments