UNPKG

ow

Version:

Function argument validation for humans

22 lines (18 loc) 682 B
import { Predicate } from './predicate.js'; export declare class ArrayBufferPredicate<T extends ArrayBufferLike> extends Predicate<T> { /** Test an array buffer to have a specific byte length. @param byteLength - The byte length of the array buffer. */ byteLength(byteLength: number): this; /** Test an array buffer to have a minimum byte length. @param byteLength - The minimum byte length of the array buffer. */ minByteLength(byteLength: number): this; /** Test an array buffer to have a minimum byte length. @param length - The minimum byte length of the array buffer. */ maxByteLength(byteLength: number): this; }