Skip to content

Documentation / @einvoice-ts/validator / RulesetComposition

Type Alias: RulesetComposition ​

RulesetComposition = readonly Ruleset[]

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

An ordered list of ruleset constants to validate against: layers, where later entries modify earlier ones (as in an ESLint flat config or Object.assign). A constant must come after what it requires; rules evaluate, and issues are reported, in list order.

Example ​

ts
import type { RulesetComposition } from '@einvoice-ts/validator';
import { dkRuleset, en16931Ruleset, peppolRuleset } from '@einvoice-ts/validator';

const peppol: RulesetComposition = [en16931Ruleset, peppolRuleset];
const danish: RulesetComposition = [en16931Ruleset, peppolRuleset, dkRuleset];

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.