MCPcopy Create free account
hub / github.com/garrytan/gstack / getRetentionPolicy

Function getRetentionPolicy

scripts/gstack-schema-pack.ts:277–281  ·  view source on GitHub ↗
(pageType: string)

Source from the content-addressed store, hash-verified

275
276/** Returns the retention policy for a given page type. Throws on unknown. */
277export 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected