Skip to content

Commit

Permalink
refactor: Extract type
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Oct 4, 2023
1 parent 6a30418 commit 60c16f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/charts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,17 @@ const META: Meta = {
},
};

export const getInitialConfig = ({
key,
chartType,
dimensions,
measures,
}: {
type GetInitialConfigOptions = {
key?: string;
chartType: ChartType;
dimensions: DataCubeMetadataWithHierarchies["dimensions"];
measures: DataCubeMetadataWithHierarchies["measures"];
}): ChartConfig => {
};

export const getInitialConfig = (
options: GetInitialConfigOptions
): ChartConfig => {
const { key, chartType, dimensions, measures } = options;
const genericConfigProps: {
key: string;
version: string;
Expand Down

0 comments on commit 60c16f9

Please sign in to comment.