[react-jsonschema-form] Add definition of ThemeProps (#36795)

* Add withTheme definition

* Prettier changes

* Change react-jsonschema-form version correctly

* Add several function types about 'react-jsonschema-form/lib/utils' module

* Linter

* Add registry into ArrayFieldTemplateProps

* Format

* Add definition about ButtonProps

* Prettier

* [react-jsonschema-form] Add definition of ThemeProps

* [react-jsonschema-form] Add export in ThemeProps type
This commit is contained in:
Agustin N. R. Ramirez 2019-07-10 17:02:20 -03:00 committed by Armando Aguirre
parent 77f516d94f
commit f128e5e9b6

View File

@ -236,8 +236,10 @@ declare module 'react-jsonschema-form' {
formData: T;
};
export function withTheme<T>(
themeProps: Omit<FormProps<T>, 'schema'>
export type ThemeProps<T = any> = Omit<FormProps<T>, 'schema'>;
export function withTheme<T = any>(
themeProps: ThemeProps<T>
): React.ComponentClass<FormProps<T>> | React.StatelessComponent<FormProps<T>>;
export type AddButtonProps = {