mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 11:10:03 +00:00
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:
committed by
Pranav Senthilnathan
parent
49a4c2225d
commit
4577baf07c
10
types/split.js/index.d.ts
vendored
10
types/split.js/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user