Skip to content

Commit

Permalink
Fixes primefaces#3609 - Update Calendar typings to be precise
Browse files Browse the repository at this point in the history
  • Loading branch information
Magiczne committed Dec 16, 2023
1 parent f6c5cda commit 9510c9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export interface CalendarContext {
/**
* Current date.
*/
date: string | Date | string[] | Date[] | undefined | null;
date: string | Date | [string, string | null] | [Date, Date | null] | undefined | null;
/**
* Current today state of the calendar's day.
* @defaultValue false
Expand Down Expand Up @@ -475,7 +475,7 @@ export interface CalendarProps {
* Value of the component.
* @defaultValue null
*/
modelValue?: string | Date | string[] | Date[] | undefined | null;
modelValue?: string | Date | [string, string | null] | [Date, Date | null] | undefined | null;
/**
* Defines the quantity of the selection.
* @defaultValue single
Expand Down Expand Up @@ -877,9 +877,9 @@ export interface CalendarSlots {
export interface CalendarEmits {
/**
* Emitted when the value changes.
* @param {string | Date | string[] | Date[] | undefined} value - New value.
* @param {string | Date | [string, string | null] | [Date, Date | null] | undefined} value - New value.
*/
'update:modelValue'(value: string | Date | string[] | Date[] | undefined): void;
'update:modelValue'(value: string | Date | [string, string | null] | [Date, Date | null] | undefined): void;
/**
* Callback to invoke when input field is being typed.
* @param {Event} event - Browser event
Expand Down

0 comments on commit 9510c9d

Please sign in to comment.