AutoBE
    Preparing search index...

    Early-exit guard: throw when the predicate holds.

    Renders to if (predicate) throw error. Use for precondition and authorization checks that abort the operation.

    interface IGuardStatement {
        errorExpression: IValueExpression;
        kind: "guard";
        predicate: IPredicate;
    }
    Index

    Properties

    errorExpression: IValueExpression

    Error thrown when predicate holds.

    kind: "guard"
    predicate: IPredicate

    Condition that triggers the throw when true.