Thruput TypeScript protocol bindings
    Preparing search index...

    Type Alias VarArray<T, N>

    VarArray: T[] & { max_length?: N }

    An array of at most N elements.

    max_length is a phantom type-level annotation: it does not exist at runtime, and any T[] is assignable. The codec enforces the bound when encoding and decoding.

    Type Parameters

    • T
    • N extends number