Retrieve the full template configuration for a given article type.
Falls back to the breaking template for unknown types — this means
any unrecognised type string will receive the compact, urgency-focused
breaking-news layout rather than an error, ensuring graceful degradation
across all content generation pipelines.
Uses Object.hasOwn() (ES2022) for prototype-pollution safety.
This is compatible with the project's tsconfig.scripts.json target
("target": "ES2022") and the Node ≥24 runtime requirement (engines.node).
Retrieve the full template configuration for a given article type. Falls back to the
breakingtemplate for unknown types — this means any unrecognised type string will receive the compact, urgency-focused breaking-news layout rather than an error, ensuring graceful degradation across all content generation pipelines.Uses
Object.hasOwn()(ES2022) for prototype-pollution safety. This is compatible with the project'stsconfig.scripts.jsontarget ("target": "ES2022") and the Node ≥24 runtime requirement (engines.node).