Skip to content

Commit

Permalink
add readonly params in index.d.ts
Browse files Browse the repository at this point in the history
uvarov-frontend committed Nov 27, 2023
1 parent 4ebf091 commit eb27676
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions package/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -39,4 +39,26 @@ export default class VanillaCalendar {
update: () => void;
init: () => void;
destroy: () => void;

readonly HTMLElement: HTMLElement;
readonly HTMLOriginalElement: HTMLElement;
readonly HTMLInputElement?: HTMLInputElement;
readonly rangeMin: T.FormatDateString;
readonly rangeMax: T.FormatDateString;
readonly rangeDisabled: T.FormatDateString[];
readonly rangeEnabled: T.FormatDateString[];
readonly selectedDates: T.FormatDateString[];
readonly selectedHolidays: T.FormatDateString[];
readonly selectedMonth: number;
readonly selectedYea: number;
readonly selectedHours: string;
readonly selectedMinutes: string;
readonly selectedKeeping: string;
readonly selectedTime: string;
readonly userTime: boolean;
readonly currentType: T.TypesCalendar;
readonly correctMonths: number;
readonly viewYear: number;
readonly dateMin: Date;
readonly dateMax: Date;
}

0 comments on commit eb27676

Please sign in to comment.