Skip to content

Commit

Permalink
fix: Add missing type for weekNumbers (fixes #667)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Nov 29, 2023
1 parent bee8aef commit 250726b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type EmitEvents =
| 'range-end'
| 'date-update'
| 'invalid-date';

export type WeekNumberType = 'iso' | 'local' | ((date: Date) => string | number);
export type TimeObj = { hours: number; minutes: number; seconds: number };
export type PartialTimeObj = { hours?: number | string; minutes?: number | string; seconds?: number | string };
export type TimeModel = {
Expand Down Expand Up @@ -102,7 +102,7 @@ export interface VueDatePickerProps {
position?: 'left' | 'center' | 'right';
dark?: boolean;
placeholder?: string;
weekNumbers?: 'iso' | 'local' | ((date: Date) => string | number);
weekNumbers?: WeekNumberType | { type: WeekNumberType; hideOnOffsetDates?: boolean };
hoursIncrement?: number | string;
hoursGridIncrement?: number | string;
secondsGridIncrement?: number | string;
Expand Down

0 comments on commit 250726b

Please sign in to comment.