Documentation
    Preparing search index...

    Result of applying inference rules.

    interface ApplyRulesResult {
        errors: {
            message: string;
            rule: string;
            stage: "schema" | "template" | "render";
        }[];
        matchedRules: string[];
        metadata: Record<string, unknown>;
        renderAs: string | null;
        renderedContent: string | null;
    }
    Index
    errors: {
        message: string;
        rule: string;
        stage: "schema" | "template" | "render";
    }[]

    Interpolation failures (schema set resolution, render, template) of matched rules, in order. Each was also logged as a warning.

    Type Declaration

    • message: string

      Error message.

    • rule: string

      Name of the rule that failed.

    • stage: "schema" | "template" | "render"

      Stage that failed.

    matchedRules: string[]

    Names of rules that matched.

    metadata: Record<string, unknown>

    Merged metadata from all matching rules.

    renderAs: string | null

    The renderAs value from the last matching rule that declares it, or null.

    renderedContent: string | null

    Rendered template content from the last matching rule with a template, or null.