Skip to content

Commit

Permalink
Merge pull request #270 from adobe/mif/tsconfig-fix
Browse files Browse the repository at this point in the history
Fix the type error causing build failure in the destination package
  • Loading branch information
mia-mifeng committed Apr 29, 2024
2 parents 1dd0630 + 3e26733 commit d6f388a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/types/Chart.ts
Expand Up @@ -680,10 +680,16 @@ export interface MarkBounds {
y2: number;
}

const DatumPredefinedKey = {
markId: MARK_ID,
seriesId: SERIES_ID,
trendlineValue: TRENDLINE_VALUE,
} as const;

export interface Datum {
[MARK_ID]: number;
[SERIES_ID]: string;
[TRENDLINE_VALUE]?: number;
[DatumPredefinedKey.markId]: number;
[DatumPredefinedKey.seriesId]: string;
[DatumPredefinedKey.trendlineValue]?: number;
[key: string]: unknown;
}

Expand Down

0 comments on commit d6f388a

Please sign in to comment.