(pageType: string)
| 275 | |
| 276 | /** Returns the retention policy for a given page type. Throws on unknown. */ |
| 277 | export function getRetentionPolicy(pageType: string): SchemaTypeDefinition['retention'] { |
| 278 | const def = GSTACK_CORE_SCHEMA_PACK.page_types.find((t) => t.type === pageType); |
| 279 | if (!def) throw new Error(`Unknown page type: ${pageType}`); |
| 280 | return def.retention; |
| 281 | } |
no outgoing calls
no test coverage detected