Skip to content

Commit

Permalink
🔨 specify correct type for view configs
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Sep 10, 2024
1 parent 8b53f96 commit 94f15bf
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -64,14 +65,8 @@ export interface IndicatorsAfterPreProcessing {
export interface View<IndicatorsType extends Record<string, any>> {
dimensions: MultiDimDimensionChoices
indicators: IndicatorsType
config?: Config
config?: GrapherInterface
}

export interface Config {
title?: string
subtitle?: string
}

export type MultiDimDimensionChoices = Record<string, string> // Keys: dimension slugs, values: choice slugs

export type FaqEntryKeyedByGdocIdAndFragmentId = {
Expand Down

0 comments on commit 94f15bf

Please sign in to comment.