UNPKG

1.19 kBTypeScriptView Raw
1import type { TypedArray } from '../typed-array.js';
2import { Predicate } from './predicate.js';
3export declare class TypedArrayPredicate<T extends TypedArray> extends Predicate<T> {
4 /**
5 Test a typed array to have a specific byte length.
6
7 @param byteLength - The byte length of the typed array.
8 */
9 byteLength(byteLength: number): this;
10 /**
11 Test a typed array to have a minimum byte length.
12
13 @param byteLength - The minimum byte length of the typed array.
14 */
15 minByteLength(byteLength: number): this;
16 /**
17 Test a typed array to have a minimum byte length.
18
19 @param length - The minimum byte length of the typed array.
20 */
21 maxByteLength(byteLength: number): this;
22 /**
23 Test a typed array to have a specific length.
24
25 @param length - The length of the typed array.
26 */
27 length(length: number): this;
28 /**
29 Test a typed array to have a minimum length.
30
31 @param length - The minimum length of the typed array.
32 */
33 minLength(length: number): this;
34 /**
35 Test a typed array to have a maximum length.
36
37 @param length - The maximum length of the typed array.
38 */
39 maxLength(length: number): this;
40}