mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
77f516d94f
commit
f128e5e9b6
6
types/react-jsonschema-form/index.d.ts
vendored
6
types/react-jsonschema-form/index.d.ts
vendored
@ -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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user