augment-vir - v32.7.0
    Preparing search index...

    Type Alias ByteSize<Unit>

    ByteSize: (true extends Unit ? AnyByteSize : unknown) & Record<
        Exclude<Unit, true>,
        number,
    >

    A storage size that requires exactly the given ByteUnit keys. Pass true to allow any unit, as in AnyByteSize. Like date-vir's Duration, but for bytes.

    Type Parameters

    import {type ByteSize, ByteUnit} from '@augment-vir/common';

    const maxUpload: ByteSize<ByteUnit.Megabytes> = {
    megabytes: 10,
    };