Skip to content

Commit

Permalink
Trying this typing convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-NRCan committed Oct 2, 2023
1 parent f506694 commit 995e3b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/chart/chart-types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChartType, ChartData, ChartOptions, DefaultDataPoint } from 'chart.js';
import { ChartType, ChartData, ChartDataset, ChartOptions, DefaultDataPoint } from 'chart.js';

export const EVENT_CHART_CHANGED: string = "chart/changed";
// export const EVENT_CHART_PARSE: string = "chart/parse";
Expand All @@ -13,7 +13,11 @@ export type GeoChartType = ChartType;
export interface GeoChartData<
TType extends GeoChartType = GeoChartType,
TData = DefaultDataPoint<TType>
> extends ChartData<TType, TData, string> { };
> extends ChartData<TType, TData, string> { };
export type GeoChartDataset<
TType extends GeoChartType = GeoChartType,
TData = DefaultDataPoint<TType>
> = ChartDataset<TType, TData>;
export type GeoChartOptions<TType extends GeoChartType> = ChartOptions<TType>;

export interface OptionsGeoChart extends ChartOptions<ChartType> {
Expand Down

0 comments on commit 995e3b8

Please sign in to comment.