From 4597496f183e8645ad79ff17e5a3eca722ae5eff Mon Sep 17 00:00:00 2001 From: Andrii <32092177+AndrewZagovora@users.noreply.github.com> Date: Thu, 5 May 2022 17:48:04 +0300 Subject: [PATCH] #2844 - bug fixed (#2848) Co-authored-by: andrii.zagovora --- components/lib/calendar/Calendar.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index 8d73863954..32189dff75 100644 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -55,12 +55,13 @@ interface CalendarVisibleChangeParams { callback?(): void; } -interface CalendarNavigatorTemplateChangeParams { - event: React.SyntheticEvent; - value: string | number | undefined | null; -} +type CalendarNavigatorTemplateChangeCallback = ( + event: React.SyntheticEvent, + value: string | number | undefined | null +) => void; + interface CalendarNavigatorTemplateParams { - onChange(e: CalendarNavigatorTemplateChangeParams): void; + onChange: CalendarNavigatorTemplateChangeCallback; className: string; value: string | number | undefined | null; names: any[];