From fc0c972fe1697970d27b60da62d833036e7b4cdb Mon Sep 17 00:00:00 2001 From: Gudine Date: Thu, 20 Jun 2024 16:37:08 -0300 Subject: [PATCH] Converts getTooltips and getOrigins return types into arrays --- src/nouislider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouislider.ts b/src/nouislider.ts index e7ee831..131c56a 100644 --- a/src/nouislider.ts +++ b/src/nouislider.ts @@ -216,8 +216,8 @@ export interface API { removePips: () => void; removeTooltips: () => void; getPositions: () => number[]; - getTooltips: () => { [handleNumber: number]: HTMLElement | false }; - getOrigins: () => { [handleNumber: number]: HTMLElement }; + getTooltips: () => (HTMLElement | false)[] | null; + getOrigins: () => HTMLElement[]; pips: (grid: Pips) => HTMLElement; }