From bcbe4b023fbb3d474e71de1038e1fe508c2901f2 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Thu, 5 Sep 2024 15:52:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20fix=20type=20inference=20mismatc?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baker/MultiDimBaker.tsx | 2 +- .../@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/baker/MultiDimBaker.tsx b/baker/MultiDimBaker.tsx index 3ae3f15a8f9..03b5c6fc0e8 100644 --- a/baker/MultiDimBaker.tsx +++ b/baker/MultiDimBaker.tsx @@ -42,7 +42,7 @@ import { const getGrapherConfigIdsByVariableIds = async ( knex: db.KnexReadonlyTransaction, variableIds: number[] -) => { +): Promise> => { const rows = await getGrapherConfigIdsForVariables(knex, variableIds) return Object.fromEntries( diff --git a/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts b/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts index 163f6042d20..5ddfb472c50 100644 --- a/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts +++ b/packages/@ourworldindata/types/src/siteTypes/MultiDimDataPage.ts @@ -83,7 +83,7 @@ export interface MultiDimDataPageProps { tagToSlugMap?: Record faqEntries?: FaqEntryKeyedByGdocIdAndFragmentId primaryTopic?: PrimaryTopic | undefined - variableIdToGrapherConfigMap?: Record + variableIdToGrapherConfigMap?: Record initialQueryStr?: string canonicalUrl?: string