Update splitjs type definitions

This PR update the drag method definitions
see: https://github.com/nathancahill/split/tree/master/packages/splitjs#ondrag-ondragstart-ondragend
This commit is contained in:
PG Herveou 2019-11-06 11:25:32 -05:00 committed by GitHub
parent c55da9de12
commit e8dfce7421

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 // Project: https://github.com/nathancahill/Split.js
// Definitions by: Ilia Choly <https://github.com/icholy> // Definitions by: Ilia Choly <https://github.com/icholy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -45,13 +45,13 @@ declare namespace Split {
cursor?: 'col-resize' | 'row-resize'; cursor?: 'col-resize' | 'row-resize';
// Callback on drag. // Callback on drag.
onDrag?(): void; onDrag?(sizes: number[]): void;
// Callback on drag start. // Callback on drag start.
onDragStart?(): void; onDragStart?(sizes: number[]): void;
// Callback on drag end. // Callback on drag end.
onDragEnd?(): void; onDragEnd?(sizes: number[]): void;
// Called to create each gutter element // Called to create each gutter element
gutter?( gutter?(