@li0ard/strumok - v0.1.2
    Preparing search index...

    Type Alias TypedArg<T>

    TypedArg: T extends BigInt64Array
        ? BigInt64Array
        : T extends BigUint64Array
            ? BigUint64Array
            : T extends Float32Array
                ? Float32Array
                : T extends Float64Array
                    ? Float64Array
                    : T extends Int16Array
                        ? Int16Array
                        : T extends Int32Array
                            ? Int32Array
                            : T extends Int8Array
                                ? Int8Array
                                : T extends Uint16Array
                                    ? Uint16Array
                                    : T extends Uint32Array
                                        ? Uint32Array
                                        : T extends Uint8ClampedArray
                                            ? Uint8ClampedArray
                                            : (...) extends (...) ? (...) : (...)

    Bytes API type helpers for old + new TypeScript.

    TS 5.6 has Uint8Array, while TS 5.9+ made it generic Uint8Array<ArrayBuffer>. We can't use specific return type, because TS 5.6 will error. We can't use generic return type, because most TS 5.9 software will expect specific type.

    Maps typed-array input leaves to broad forms. These are compatibility adapters, not ownership guarantees.

    • TArg keeps byte inputs broad.
    • TRet marks byte outputs for TS 5.6 and TS 5.9+ compatibility.

    Type Parameters

    • T