diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 6f34f731dd8..3fb3ea3b7eb 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2370,9 +2370,9 @@ export interface TooltipOptions extends CoreInteraction /** * Sort tooltip items. */ - itemSort: (a: TooltipItem, b: TooltipItem) => number; + itemSort: (a: TooltipItem, b: TooltipItem, data: ChartData) => number; - filter: (e: TooltipItem) => boolean; + filter: (e: TooltipItem, index: number, array: TooltipItem[], data: ChartData) => boolean; /** * Background color of the tooltip. @@ -3041,7 +3041,7 @@ export type RadialLinearScaleOptions = CoreScaleOptions & { * Padding of label backdrop. * @default 2 */ - backdropPadding: Scriptable; + backdropPadding: Scriptable; /** * if true, point labels are shown. @@ -3060,9 +3060,8 @@ export type RadialLinearScaleOptions = CoreScaleOptions & { /** * Callback function to transform data labels to point labels. The default implementation simply returns the current string. - * @default true */ - callback: (label: string) => string; + callback: (label: string, index: number) => string; }; /**