Skip to content

Commit

Permalink
allow mode to be a callback function (#11488)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazka authored Sep 6, 2023
1 parent 44b97b8 commit e74ee7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export declare class Chart<
buildOrUpdateScales(): void;
buildOrUpdateControllers(): void;
reset(): void;
update(mode?: UpdateMode): void;
update(mode?: UpdateMode | ((ctx: { datasetIndex: number }) => UpdateMode)): void;
render(): void;
draw(): void;

Expand Down

0 comments on commit e74ee7b

Please sign in to comment.