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 Jan 20, 2024
1 parent a0f168a commit 4fd8a64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,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 @@ -928,9 +928,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 4fd8a64

Please sign in to comment.