mise API - v0.0.0
    Preparing search index...

    Function envelope_isOk

    • Type guard for successful envelopes.

      Parameters

      • envelope: {
            errors?: { message: string; type: "error" | "warning" }[];
            model?: { data: unknown; kind: string };
            rendered: string;
            renderedErr?: string;
            status: "error" | "ok";
            trace?: {
                executed?: string;
                input: string;
                proposed: string;
                validated: boolean;
            };
        }

        The envelope to check.

      Returns boolean

      True when the envelope's status is ok.