From 4577baf07c5d8a461bd403d661fbc53fb233757c Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Mon, 11 Nov 2019 15:46:43 -0500 Subject: [PATCH] Update split.js destroy and drag methods (#40158) * Update index.d.ts see documentation https://www.npmjs.com/package/split.js#destroypreservestyles--false-preservegutters--false * Update index.d.ts * Update index.d.ts --- types/split.js/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/split.js/index.d.ts b/types/split.js/index.d.ts index 2d396b49ff..35b8c606ce 100644 --- a/types/split.js/index.d.ts +++ b/types/split.js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for split.js 1.3 +// Type definitions for split.js 1.4 // Project: https://github.com/nathancahill/Split.js, https://split.js.org // Definitions by: Ilia Choly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -39,13 +39,13 @@ declare namespace Split { cursor?: 'col-resize' | 'row-resize'; // Callback on drag. - onDrag?(): void; + onDrag?(sizes: number[]): void; // Callback on drag start. - onDragStart?(): void; + onDragStart?(sizes: number[]): void; // Callback on drag end. - onDragEnd?(): void; + onDragEnd?(sizes: number[]): void; // Called to create each gutter element gutter?( @@ -83,6 +83,6 @@ declare namespace Split { collapse(index: number): void; // Destroy the instance. It removes the gutter elements, and the size CSS styles Split.js set. - destroy(): void; + destroy(preserveStyles?: boolean, preserveGutters?: boolean): void; } }