From ba972bef8a5fa3fcc8903282e694bbae673c05bf Mon Sep 17 00:00:00 2001 From: Klyachin Andrew Date: Sat, 28 Oct 2017 21:35:12 +0400 Subject: [PATCH 1/2] Export module BootstrapFileInput --- types/bootstrap-fileinput/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/bootstrap-fileinput/index.d.ts b/types/bootstrap-fileinput/index.d.ts index 8a7df2dbbc..00af8ab035 100644 --- a/types/bootstrap-fileinput/index.d.ts +++ b/types/bootstrap-fileinput/index.d.ts @@ -10,6 +10,9 @@ interface JQuery { fileinput: (options?: BootstrapFileInput.FileInputOptions) => JQuery; } +declare module 'bootstrap-fileinput' { + export = BootstrapFileInput; +} declare module BootstrapFileInput { interface FileInputOptions { @@ -19,6 +22,11 @@ declare module BootstrapFileInput { The locale JS file for the language code must be defined as mentioned in the translations section: http://plugins.krajee.com/file-input#translations */ language?: string; + + /** + * Theming + */ + theme?: string; /** Whether to display the file caption. Defaults to true. From 292fd245d93910e5b1c89909ec496122ca516de0 Mon Sep 17 00:00:00 2001 From: Klyachin Andrew Date: Wed, 8 Nov 2017 10:22:31 +0400 Subject: [PATCH 2/2] Minor changes after review --- types/bootstrap-fileinput/index.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/types/bootstrap-fileinput/index.d.ts b/types/bootstrap-fileinput/index.d.ts index 00af8ab035..61a53b12bb 100644 --- a/types/bootstrap-fileinput/index.d.ts +++ b/types/bootstrap-fileinput/index.d.ts @@ -6,12 +6,13 @@ /// -interface JQuery { - fileinput: (options?: BootstrapFileInput.FileInputOptions) => JQuery; -} +export = BootstrapFileInput; +export as namespace BootstrapFileInput; -declare module 'bootstrap-fileinput' { - export = BootstrapFileInput; +declare global { + interface JQuery { + fileinput: (options?: BootstrapFileInput.FileInputOptions) => JQuery; + } } declare module BootstrapFileInput {