From 441a8c67cfb9256db2da2b574e0560db5a59d8a1 Mon Sep 17 00:00:00 2001 From: Jasenko Karovic Date: Mon, 6 May 2024 22:05:16 +0200 Subject: [PATCH] fix: Wrong slot types (fixes #854) --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 102e48329..09b2e2364 100644 --- a/index.d.ts +++ b/index.d.ts @@ -369,8 +369,8 @@ interface SidebarSlotProps { time?: InternalTime; updateTime?: (value: number | number[], isHours?: boolean, isSeconds?: boolean) => void; updateMonthYear?: (instance: number, val: { month: number; year: number; fromNav?: boolean }) => void; - selectDate?: (day: { value: Date }, isNext: boolean = false) => {}; - presetDate?: (value: Date[] | string[] | Date | string, noTz?: boolea) => void; + selectDate?: (day: { value: Date }, isNext?: boolean) => {}; + presetDate?: (value: Date[] | string[] | Date | string, noTz?: boolean) => void; getModelMonthYear?: () => { month: number | null; year: number | null }[]; selectMonth?: (month: number, instance: number) => void; selectYear?: (year: number, instance: number) => void; @@ -422,14 +422,14 @@ interface Slots { months?: { value: number; text: string; className?: Record }[]; years?: { value: number; text: string; className?: Record }[]; updateMonthYear?: (month: number, year: number, fromNav: boolean) => void; - handleMonthYearChange?: (isNext: boolean, fromNav = false) => void; + handleMonthYearChange?: (isNext: boolean, fromNav?: boolean) => void; instance?: number; selectMonth?: (month: number, instance: number) => void; selectYear?: (year: number, instance: number) => void; }): any; 'time-picker'(props: { time: InternalTime; - updateTime: (value: number | number[], isHours = true, isSeconds = false) => void; + updateTime: (value: number | number[], isHours?: boolean, isSeconds?: boolean) => void; }): any; 'action-row'(props: { internalModelValue: InternalModelValue;