diff --git a/types/materialize-css/index.d.ts b/types/materialize-css/index.d.ts index f1540ff597..a4056b75d2 100644 --- a/types/materialize-css/index.d.ts +++ b/types/materialize-css/index.d.ts @@ -193,7 +193,7 @@ declare global { * Render days of the calendar grid that fall in the next or previous month. * @default false */ - showDaysInNextAndPreviousMonths: false; + showDaysInNextAndPreviousMonths: boolean; /** * Specify a selector for a DOM element to render the calendar in, by default it will be placed before the input. @@ -673,10 +673,10 @@ declare global { autocomplete(method: keyof Pick, data: M.AutocompleteData): JQuery; autocomplete(options?: Partial): JQuery; - datePicker(method: keyof Pick): JQuery; - datePicker(method: keyof Pick, date?: Date): JQuery; - datePicker(method: keyof Pick, date: Date): JQuery; - datePicker(options?: Partial): JQuery; + datepicker(method: keyof Pick): JQuery; + datepicker(method: keyof Pick, date?: Date): JQuery; + datepicker(method: keyof Pick, date: Date): JQuery; + datepicker(options?: Partial): JQuery; floatingActionButton(method: keyof Pick): JQuery; floatingActionButton(options?: Partial): JQuery; diff --git a/types/materialize-css/test/materialize-css-jquery.test.ts b/types/materialize-css/test/materialize-css-jquery.test.ts index 0a70184881..c463044df2 100644 --- a/types/materialize-css/test/materialize-css-jquery.test.ts +++ b/types/materialize-css/test/materialize-css-jquery.test.ts @@ -36,9 +36,9 @@ $(".whatever").floatingActionButton("destroy"); // Toast can not be invoked using jQuery. -$(".whatever").datePicker(); -$(".whatever").datePicker({ defaultDate: new Date() }); -$(".whatever").datePicker("open"); -$(".whatever").datePicker("destroy"); -$(".whatever").datePicker("setDate", new Date()); -$(".whatever").datePicker("gotoDate", new Date()); +$(".whatever").datepicker(); +$(".whatever").datepicker({ defaultDate: new Date() }); +$(".whatever").datepicker("open"); +$(".whatever").datepicker("destroy"); +$(".whatever").datepicker("setDate", new Date()); +$(".whatever").datepicker("gotoDate", new Date());