Skip to content

Commit

Permalink
Trying to remove generic types to see if imports work better from geo…
Browse files Browse the repository at this point in the history
…view-geochart plugin
  • Loading branch information
Alex-NRCan committed Sep 27, 2023
1 parent 8e7a2e6 commit 99ec284
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chart/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import styles from "./chart.module.css";
/**
* Main props for the Chart
*/
export interface TypeChartProps<TType extends ChartType, TData extends DefaultDataPoint<TType>, TLabel = unknown> {
data: ChartData<TType, TData, TLabel>;
options: ChartOptions<TType> | OptionsGeoChart;
plugins?: Plugin<TType>[];
export interface TypeChartProps {
data: ChartData<ChartType, DefaultDataPoint<ChartType>, unknown>;
options: ChartOptions<ChartType> | OptionsGeoChart;
plugins?: Plugin<ChartType>[];
}

/**
Expand All @@ -24,7 +24,7 @@ export interface TypeChartProps<TType extends ChartType, TData extends DefaultDa
* @param {TypeChartProps} props the properties passed to the Chart element
* @returns {JSX.Element} the created Chart element
*/
export function Chart(props: TypeChartProps<ChartType, DefaultDataPoint<ChartType>, string>): JSX.Element {
export function Chart(props: TypeChartProps): JSX.Element {
// Fetch the cgpv module
const w = window as any;
const cgpv = w['cgpv'];
Expand Down

0 comments on commit 99ec284

Please sign in to comment.