From 2f82f7f84e9033b3e10f9e9f387cb45cf1022901 Mon Sep 17 00:00:00 2001 From: Jessica Dennis Date: Mon, 14 Aug 2017 14:58:56 -0400 Subject: [PATCH] Add "type" parameter to Select2AjaxOptions (#18792) In order to support POST ajax requests, the type option is needed. Select2 supports this, though it may not be specifically documented. --- types/select2/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/select2/index.d.ts b/types/select2/index.d.ts index 740f329742..163b851cae 100644 --- a/types/select2/index.d.ts +++ b/types/select2/index.d.ts @@ -24,6 +24,7 @@ interface Select2AjaxOptions { * Url to make request to, Can be string or a function returning a string. */ url?: any; + type?: string; dataType?: string; delay?: number; headers?: any;