From 6916ff92b6fb4e2056fd69b0f282602554d9165b Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 29 Mar 2022 05:39:42 -0400 Subject: [PATCH] Fix #2685: Calendar TypeScript methods (#2687) --- components/lib/calendar/Calendar.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.d.ts b/components/lib/calendar/Calendar.d.ts index 135fe87ffc..6193e2b5e1 100644 --- a/components/lib/calendar/Calendar.d.ts +++ b/components/lib/calendar/Calendar.d.ts @@ -9,6 +9,8 @@ type CalendarVisibleType = 'outside' | 'dateselect' | undefined | null; type CalendarIconPosType = 'left' | 'right'; +type CalendarEventType = React.SyntheticEvent | undefined | null; + interface CalendarChangeTargetOptions { name: string; id: string; @@ -148,4 +150,10 @@ export interface CalendarProps { onHide?(): void; } -export declare class Calendar extends React.Component { } +export declare class Calendar extends React.Component { + public showOverlay(): void; + public hideOverlay(): void; + public getCurrentDateTime(): Date | Date[]; + public getViewDate(): Date | Date[]; + public updateViewDate(event: CalendarEventType, value: Date | Date[]): void; +}