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 392e477 commit 525c4e2Copy full SHA for 525c4e2
typings/index.d.ts
@@ -4,7 +4,7 @@
4
import * as React from 'react';
5
import hoistNonReactStatics = require('./hoist-non-react-statics');
6
7
-type $Without<T, K> = Pick<T, Exclude<keyof T, K>>;
+type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
8
type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
9
10
export type ThemingType<Theme> = {
0 commit comments