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
This commit is contained in:
PG Herveou
2019-11-11 15:46:43 -05:00
committed by Pranav Senthilnathan
parent 49a4c2225d
commit 4577baf07c

View File

@@ -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 <https://github.com/icholy>
// 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;
}
}