Skip to content

Commit

Permalink
Fix #2685: Calendar TypeScript methods (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Mar 29, 2022
1 parent 89a935c commit 6916ff9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -148,4 +150,10 @@ export interface CalendarProps {
onHide?(): void;
}

export declare class Calendar extends React.Component<CalendarProps, any> { }
export declare class Calendar extends React.Component<CalendarProps, any> {
public showOverlay(): void;
public hideOverlay(): void;
public getCurrentDateTime(): Date | Date[];
public getViewDate(): Date | Date[];
public updateViewDate(event: CalendarEventType, value: Date | Date[]): void;
}

0 comments on commit 6916ff9

Please sign in to comment.