@karmaniverous/rrstack
    Preparing search index...

    Type Alias Notice

    Notice:
        | {
            action: "upgrade"
            | "rejected"
            | "ingestAsCurrent";
            from: string | null;
            kind: "versionUp";
            level: "error" | "warn" | "info";
            message?: string;
            to: string;
        }
        | {
            action: "rejected"
            | "ingestAsCurrent";
            from: string | null;
            kind: "versionDown";
            level: "error" | "warn" | "info";
            message?: string;
            to: string;
        }
        | {
            action: "rejected"
            | "ingestAsCurrent";
            kind: "versionInvalid";
            level: "error" | "warn" | "info";
            message?: string;
            raw: unknown;
            to: string;
        }
        | {
            action: "convertedExisting"
            | "acceptedIncomingRules"
            | "rejected";
            convertedRuleCount?: number;
            from: UnixTimeUnit;
            kind: "timeUnitChange";
            level: "error" | "warn" | "info";
            message?: string;
            replacedRuleCount?: number;
            to: UnixTimeUnit;
        }

    Notices emitted by RRStack.update() to describe version/unit handling outcomes. Returned in order and also delivered via onNotice when provided.

    Example: log all notices while accepting newer versions with a warning

    const notices = stack.update(incomingJson, {
    onVersionDown: 'warn',
    onNotice: (n) => {
    console.info('[rrstack.notice]', n.kind, n.action);
    },
    });
    // `notices` contains the same entries, in the same order

    Notices emitted by RRStack.update() to describe version/unit handling outcomes.