Musique/node_modules/ow/dist/predicates/array-buffer.d.ts

21 lines
679 B
TypeScript

import { Predicate } from './predicate';
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;
}