Type alias ImportMacro

ImportMacro: {
    dans?: string;
    depuis: {
        nom: string;
        source?: string;
        url?: string;
    };
    les règles: (RuleName | RuleImportWithOverridenAttrs)[];
}

Represents a macro that allows to import rules from another package.

Type declaration

  • Optional dans?: string

    The namespace where to import the rules.

  • depuis: {
        nom: string;
        source?: string;
        url?: string;
    }
    • nom: string

      The name of the package to import the rules from.

    • Optional source?: string

      The path to the file containing the rules to import. If omitted try to found the file in the node_modules folders.

    • Optional url?: string

      The URL of the package, used for the documentation.

  • les règles: (RuleName | RuleImportWithOverridenAttrs)[]

    List of rules to import from the package. They could be specified by their name, or by the name and the list of properties to override or add.

Example

importer!:
depuis:
nom: my-external-package
source: my-external-package.model.yaml
dans: root
les règles:
- règle 1
- règle 2:
question: Quelle est la valeur de la règle 2 ?

Generated using TypeDoc