From 94f15bff0bf9aa9f5b4a6da9834eb8f259a54213 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Tue, 10 Sep 2024 17:47:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20specify=20correct=20type=20for?= =?UTF-8?q?=20view=20configs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../types/src/siteTypes/MultiDimDataPage.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts b/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts index 5ddfb472c50..2f705772005 100644 --- a/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts +++ b/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts @@ -1,5 +1,6 @@ import { OwidEnrichedGdocBlock } from "../gdocTypes/ArchieMlComponents.js" import { PrimaryTopic } from "../gdocTypes/Datapage.js" +import { GrapherInterface } from "../grapherTypes/GrapherTypes.js" import { IndicatorTitleWithFragments } from "../OwidVariable.js" // Indicator ID, catalog path, or maybe an array of those @@ -64,14 +65,8 @@ export interface IndicatorsAfterPreProcessing { export interface View> { dimensions: MultiDimDimensionChoices indicators: IndicatorsType - config?: Config + config?: GrapherInterface } - -export interface Config { - title?: string - subtitle?: string -} - export type MultiDimDimensionChoices = Record // Keys: dimension slugs, values: choice slugs export type FaqEntryKeyedByGdocIdAndFragmentId = {