From 460a2e2103d7cb722d3c5c8f6778b0809a935ec0 Mon Sep 17 00:00:00 2001 From: Richard Rout Date: Thu, 24 Nov 2016 08:05:42 -0700 Subject: [PATCH] select2 templateSelection method signature A JQuery container is also passed in as the 2nd parameter. https://select2.github.io/options.html#templateSelection --- select2/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2/index.d.ts b/select2/index.d.ts index ebab4086aa..2f6fea9063 100644 --- a/select2/index.d.ts +++ b/select2/index.d.ts @@ -76,7 +76,7 @@ interface Select2Options { /** * Template can return both plain string that will be HTML escaped and a jquery object that can render HTML */ - templateSelection?: (object: Select2SelectionObject) => any; + templateSelection?: (object: Select2SelectionObject, container: JQuery) => any; templateResult?: (object: Select2SelectionObject) => any; language?: string | string[] | {}; selectOnClose?: boolean;