From e543d73888eacef2d1b4b2cad21fef0f175aedb4 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sat, 12 Jun 2021 15:35:23 -0700 Subject: [PATCH] added string to GridStackEvent since you can do 'added change' --- src/gridstack.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gridstack.ts b/src/gridstack.ts index 10d444371..bf695c9a1 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -21,8 +21,9 @@ export * from './gridstack-ddi'; export interface GridHTMLElement extends HTMLElement { gridstack?: GridStack; // grid's parent DOM element points back to grid class } +/** list of possible events, or space separated list of them */ export type GridStackEvent = 'added' | 'change' | 'disable' | 'drag' | 'dragstart' | 'dragstop' | 'dropped' | - 'enable' | 'removed' | 'resize' | 'resizestart' | 'resizestop'; + 'enable' | 'removed' | 'resize' | 'resizestart' | 'resizestop' | string; /** Defines the coordinates of an object */ export interface MousePosition {