Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): format parameters for calendars get date functions #3147

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions types/fomantic-ui-calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare namespace FomanticUI {
/**
* Get the selected date
*/
(behavior: 'get date'): Date | string;
(behavior: 'get date', format?: string): Date | string;

/**
* Set the selected date.
Expand All @@ -52,7 +52,7 @@ declare namespace FomanticUI {
/**
* Get the start date for range selection
*/
(behavior: 'get startDate'): Date | string;
(behavior: 'get startDate', format?: string): Date | string;

/**
* Set the start date for range selection
Expand All @@ -62,7 +62,7 @@ declare namespace FomanticUI {
/**
* Get the end date for range selection
*/
(behavior: 'get endDate'): Date | string;
(behavior: 'get endDate', format?: string): Date | string;

/**
* Set the end date for range selection
Expand All @@ -72,7 +72,7 @@ declare namespace FomanticUI {
/**
* Get the currently focused date
*/
(behavior: 'get focusDate'): Date | string;
(behavior: 'get focusDate', format?: string): Date | string;

/**
* Set the currently focused date
Expand Down
Loading