UNPKG

1.18 kBTypeScriptView Raw
1import { TypedArray } from 'type-fest';
2import { Predicate } from './predicate';
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}