diff --git a/packages/di/di.tsx b/packages/di/di.tsx index b8fea735..a573a690 100644 --- a/packages/di/di.tsx +++ b/packages/di/di.tsx @@ -1,6 +1,6 @@ import React, { StatelessComponent, ComponentType, createContext } from 'react'; -export type GetNonDefaultProps = T extends {} ? never : T; +export type GetNonDefaultProps = keyof T extends never ? never : T; export type RegistryContext = Record; const registryContext = createContext({});