From 20122e28889e0f9625c436742bf4bd57dde3c6b0 Mon Sep 17 00:00:00 2001 From: Liad Idan Date: Fri, 26 Jan 2018 19:00:57 +0200 Subject: [PATCH] Add missing property to Pickadate (#23217) * Add missing property to Pickadate Add `weekdaysLetter` property to Pickadate.DateOptions https://github.com/Dogfalo/materialize/blob/6da429c5972c90e386e34f14bed3f17c8c40fa95/dist/js/materialize.js#L5905 * Update index.d.ts --- types/materialize-css/v0/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/materialize-css/v0/index.d.ts b/types/materialize-css/v0/index.d.ts index a457c3ad1a..87629ed699 100644 --- a/types/materialize-css/v0/index.d.ts +++ b/types/materialize-css/v0/index.d.ts @@ -5,6 +5,7 @@ // Sukhdeep Singh // Jean-Francois Cere // Sebastien Cote +// Liad Idan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -475,11 +476,15 @@ declare namespace Materialize { } /** - * Declare Pickadate namespace again in order to add more Materialize specific properties to TimeOptions interface + * Declare Pickadate namespace again in order to add more Materialize specific properties to TimeOptions and DateOptions interfaces * * @see http://www.typescriptlang.org/docs/handbook/declaration-merging.html */ declare namespace Pickadate { + interface DateOptions { + weekdaysLetter?: string[]; + } + interface TimeOptions { /** * Set default time such as : 'now', '1:30AM', '16:30'.