Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / canonicalizeLadder

Function: canonicalizeLadder()

ts
function canonicalizeLadder(spec, options?): CanonicalLadderSpec;

Defined in: packages/core/dist/index.d.ts

Canonicalizes a declared LadderSpec: validates the shape once (FR-119 judge declaration included) and resolves every rung's effort to an explicit value. chainEffort is the effort the resolution chain would contribute at the declaring layer; a rung that resolves no effort at all is a ConfigError (the canonical form has no absent-effort member by declaration).

Parameters

ParameterType
specLadderSpec
options?{ chainEffort?: Effort; }
options.chainEffort?Effort

Returns

CanonicalLadderSpec