Having them as types instead of json files offers me type checking. When using my custom components this means I can ensure they follow the correct data structure and can remove nasty type casts like this
export function OutdoorSessionComponent() {
const outdoorData: ObjectWithDisplayName = RoundData.types.outdoor
.rounds as unknown as ObjectWithDisplayName;
Having them as types instead of json files offers me type checking. When using my custom components this means I can ensure they follow the correct data structure and can remove nasty type casts like this
This can be achieved like this