From bf1b5b2b5a5197d79be92d354be2375e717ae97f Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 9 Oct 2014 16:52:13 -0400 Subject: [PATCH] Update pickadate.d.ts typing for container option Pickadate.js allows for the container option to be either a selector string or DOM element. The latter is useful in many situations. See this line in the source: https://github.com/amsul/pickadate.js/blob/dev/lib/picker.js#L119 --- pickadate/pickadate.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pickadate/pickadate.d.ts b/pickadate/pickadate.d.ts index d21550d00..093b3c8bd 100644 --- a/pickadate/pickadate.d.ts +++ b/pickadate/pickadate.d.ts @@ -141,8 +141,8 @@ declare module Pickadate { // Disable dates (elements can be Dates, [YEAR, MONTH, DATE] arrays, or integers of the week) disable?: any[]; - // Root container selector - container?: string + // Root container selector (string) or element (JQuery) + container?: any; // Events onStart?: () => void; @@ -238,8 +238,8 @@ declare module Pickadate { // Disable dates (elements can be Dates, [YEAR, MONTH, DATE] arrays, or integers of the week) disable?: any[]; - // Root container selector - container?: string + // Root container selector (string) or element (JQuery) + container?: any; // Events onStart?: () => void;