Skip to main content

Function: typedArrayByteLengthRangeInclusive()

typedArrayByteLengthRangeInclusive<T>(start: number, end: number, options?: ValidatorOptions): object

Type parameters

Type parameter
T extends TypedArray

Parameters

ParameterType
startnumber
endnumber
options?ValidatorOptions

Returns

object

run()

Parameters

ParameterType
inputT

Returns

Result<T, Error> | Result<unknown, ExpectedConstraintError<T>>

Source

projects/shapeshift/src/constraints/TypedArrayLengthConstraints.ts:83