]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add missing fields to the ScriptableContext type (#10254)
authorMartin Steiger <git@martin-steiger.de>
Thu, 24 Mar 2022 12:42:46 +0000 (13:42 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Mar 2022 12:42:46 +0000 (08:42 -0400)
types/index.esm.d.ts

index 882a8df47da198f85ba9542770421fbba0cff21f..29cdd0cf4c8d14c5deaf03cb2a98b384494b6d77 100644 (file)
@@ -21,6 +21,8 @@ export interface ScriptableContext<TType extends ChartType> {
   dataIndex: number;
   dataset: UnionToIntersection<ChartDataset<TType>>;
   datasetIndex: number;
+  type: string;
+  mode: string;
   parsed: UnionToIntersection<ParsedDataType<TType>>;
   raw: unknown;
 }