Skip to content

Commit e61f418

Browse files
authored
feat(types): format parameters for calendars get date functions
Added types for the new optional format parameters for calendars get date functions as of #3141
1 parent 21d259d commit e61f418

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/fomantic-ui-calendar.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare namespace FomanticUI {
3030
/**
3131
* Get the selected date
3232
*/
33-
(behavior: 'get date'): Date | string;
33+
(behavior: 'get date', format?: string): Date | string;
3434

3535
/**
3636
* Set the selected date.
@@ -52,7 +52,7 @@ declare namespace FomanticUI {
5252
/**
5353
* Get the start date for range selection
5454
*/
55-
(behavior: 'get startDate'): Date | string;
55+
(behavior: 'get startDate', format?: string): Date | string;
5656

5757
/**
5858
* Set the start date for range selection
@@ -62,7 +62,7 @@ declare namespace FomanticUI {
6262
/**
6363
* Get the end date for range selection
6464
*/
65-
(behavior: 'get endDate'): Date | string;
65+
(behavior: 'get endDate', format?: string): Date | string;
6666

6767
/**
6868
* Set the end date for range selection
@@ -72,7 +72,7 @@ declare namespace FomanticUI {
7272
/**
7373
* Get the currently focused date
7474
*/
75-
(behavior: 'get focusDate'): Date | string;
75+
(behavior: 'get focusDate', format?: string): Date | string;
7676

7777
/**
7878
* Set the currently focused date

0 commit comments

Comments
 (0)