diff --git a/typings/index.d.ts b/typings/index.d.ts index fece91b..d2bb222 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4,7 +4,7 @@ import * as React from 'react'; import hoistNonReactStatics = require('./hoist-non-react-statics'); -type $Without = Pick>; +type $Without = T extends any ? Pick> : never; type $DeepPartial = { [P in keyof T]?: $DeepPartial }; export type ThemingType = {