Skip to content

Commit 436b0ad

Browse files
committed
also exclude potentially undefined methods from WritableKeys<T>
1 parent d6810a4 commit 436b0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type WritableKeys<T> = {
2525
) ? true : false
2626
) extends false
2727
? never
28-
: (T[Prop] extends Function | null ? never : Prop);
28+
: (T[Prop] extends Function | null | undefined ? never : Prop);
2929
}[keyof T];
3030

3131

0 commit comments

Comments
 (0)