From 5564aca45cb30ea85f26bb53a085c58a3ca93fe5 Mon Sep 17 00:00:00 2001 From: Anthony Lenglet <36004334+AnthonyLenglet@users.noreply.github.com> Date: Fri, 1 Feb 2019 10:38:27 +0100 Subject: [PATCH 1/2] Make create function return a NoUiSlider instance --- types/nouislider/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nouislider/index.d.ts b/types/nouislider/index.d.ts index 76b62371fe..4636f0281c 100644 --- a/types/nouislider/index.d.ts +++ b/types/nouislider/index.d.ts @@ -11,7 +11,7 @@ declare namespace noUiSlider { /** * To create a slider, call noUiSlider.create() with an element and your options. */ - function create(target: HTMLElement, options: Options): void; + function create(target: HTMLElement, options: Options): noUiSlider.noUiSlider; interface Options { /** From 47028c5c757fdc5787ae1990b3f2912b3d333c43 Mon Sep 17 00:00:00 2001 From: Anthony Lenglet <36004334+AnthonyLenglet@users.noreply.github.com> Date: Fri, 1 Feb 2019 10:48:18 +0100 Subject: [PATCH 2/2] Bump @types/nouislider version --- types/nouislider/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nouislider/index.d.ts b/types/nouislider/index.d.ts index 4636f0281c..bc3f625cda 100644 --- a/types/nouislider/index.d.ts +++ b/types/nouislider/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for nouislider v9.0.0 +// Type definitions for nouislider v9.0.1 // Project: https://github.com/leongersen/noUiSlider // Definitions by: Patrick Davies , Guust Nieuwenhuis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped