From f128e5e9b6dfd293c615d12e8ed55078bd02a474 Mon Sep 17 00:00:00 2001 From: "Agustin N. R. Ramirez" Date: Wed, 10 Jul 2019 17:02:20 -0300 Subject: [PATCH] [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 --- types/react-jsonschema-form/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = {