From 1c0e48689c000471851fbb8dd88745a69a560592 Mon Sep 17 00:00:00 2001 From: jeetiss Date: Fri, 20 Nov 2020 12:12:19 +0300 Subject: [PATCH] fix(types): fix preloader type --- types/index.d.ts | 4 ++-- types/test.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 881eaff..32a9146 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -import { ComponentType, Ref, RefForwardingComponent } from 'react'; +import { Ref, RefForwardingComponent } from 'react'; import JQuery = require('jquery'); type Locale = @@ -332,7 +332,7 @@ interface WidgetProps extends Settings { customTabs?: {[key: string]: CustomTabConstructor}; validators?: Validator[]; tabsCss?: string; - preloader?: ComponentType | null; + preloader?: JSX.Element | string | number | null; ref?: Ref; } diff --git a/types/test.tsx b/types/test.tsx index 6830132..6afdbfb 100644 --- a/types/test.tsx +++ b/types/test.tsx @@ -74,8 +74,17 @@ const Preloader = () =>
; ; +}/>; + +; + ;