Skip to content

Documentation / @facturometro/einvoice / RuleOverride

Type Alias: RuleOverride ​

RuleOverride = Partial<Pick<Rule, "context" | "message" | "severity" | "test" | "when">>

Defined in: packages/validator/src/rulesets/define.ts:28

What a ruleset may change about a rule of the composition. when replaces the rule's own gate; the gate of the ruleset that defined the rule is kept.

Example ​

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

const softer: RuleOverride = { severity: 'warning' };

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