From e61f41884dfd3afaf9266660d19284f871b5ba6a Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Thu, 26 Dec 2024 15:00:37 +0100 Subject: [PATCH] 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 --- types/fomantic-ui-calendar.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/fomantic-ui-calendar.d.ts b/types/fomantic-ui-calendar.d.ts index 594c97572f..570370b3ee 100644 --- a/types/fomantic-ui-calendar.d.ts +++ b/types/fomantic-ui-calendar.d.ts @@ -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. @@ -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 @@ -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 @@ -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