Skip to content

Documentation / @facturometro/validator / CompiledRule

Interface: CompiledRule ​

Defined in: packages/validator/src/engine/compile.ts:43

One rule of a compiled composition and who defined it.

Example ​

ts
import type { CompiledRule } from '@facturometro/validator';

const ids = (compiled: readonly CompiledRule[]) => compiled.map((entry) => entry.rule.id);

Properties ​

definedBy ​

readonly definedBy: string

Defined in: packages/validator/src/engine/compile.ts:45

Id of the ruleset the rule came from (the replacing one, for a replaced rule).


rule ​

readonly rule: Rule

Defined in: packages/validator/src/engine/compile.ts:47

The rule, with the ruleset gate and any override applied.

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.