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; }