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": "ES2025") and the Node โฅ25 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": "ES2025") and the Node โฅ25 runtime requirement (engines.node).