createAlpyneDefinitionAccess
createAlpyneDefinitionAccess(
runtime):StrictAlpyneDefinitionAccess
Creates Template lookups over a composed Definition, resolving a PRN to its App and then to the Template within that App.
Parameters
Section titled “Parameters”runtime
Section titled “runtime”The Definition to look up Templates in.
Returns
Section titled “Returns”Strict lookups that throw on failure, with the safe variant under safe.
Remarks
Section titled “Remarks”Lookups read the Definition directly, so repeated calls with the same PRN return the same
TemplateDefinition object.
Example
Section titled “Example”Resolving a Template for the UI
const access = createAlpyneDefinitionAccess(definition);const employment = access.template('prn::hris:template/employment');const maybe = access.safe.template(prn); // undefined when prn is not a known Template PRN
