@chevrotain/types
    Preparing search index...

    Type Alias InferOr<Alts>

    InferOr: ReturnType<Alts[number]["ALT"]>

    Infers the union of return types from a tuple of IOrAlt alternatives.

    Type Parameters

    • Alts extends readonly IOrAlt<any>[]
    // Inferred as `number | string`
    const result = this.OR([
    { ALT: () => 1 },
    { ALT: () => "hello" },
    ]);