usedFactsFromSchema
The registry keys a section asks of the property — the union of its slot bindings, its declared `reads`, and every fact its `compute()` callbacks are traced reading.
The registry keys a section asks of the property — the union of its slot
bindings, its declared reads, and every fact its compute() callbacks are
traced reading. Sorted and deduplicated, so the serialized value is stable
across builds and safe to fold into a content hash.
Takes the section’s RAW defineSchema result, never the parsed schema: the
reads list and the compute handle→fn map ride on symbol keys, which is
exactly what keeps them out of the serialized schema jsonb, and parsing
returns a fresh object carrying neither.
Import from @homepages/template-kit.
Signature
Section titled “Signature”function usedFactsFromSchema(schema: SectionSchemaShape): string[]Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
schema |
SectionSchemaShape |
required |
Returns
Section titled “Returns”string[]