diff --git a/types/react-jsonschema-form/index.d.ts b/types/react-jsonschema-form/index.d.ts index 5c88911ce8..777a35d4ae 100644 --- a/types/react-jsonschema-form/index.d.ts +++ b/types/react-jsonschema-form/index.d.ts @@ -236,8 +236,10 @@ declare module 'react-jsonschema-form' { formData: T; }; - export function withTheme( - themeProps: Omit, 'schema'> + export type ThemeProps = Omit, 'schema'>; + + export function withTheme( + themeProps: ThemeProps ): React.ComponentClass> | React.StatelessComponent>; export type AddButtonProps = {