Bytes.assert
Asserts if the given value is Bytes.Bytes.
Imports
Named
import { Bytes } from 'ox'Examples
import { Bytes } from 'ox'
Bytes.assert('abc')
Bytes.InvalidBytesTypeError: Value `"abc"` of type `string` is an invalid Bytes value. Bytes values must be of type `Uint8Array`.Definition
function assert(
value: unknown,
): asserts value is BytesSource: src/core/Bytes.ts
Parameters
value
- Type:
unknown
Value to assert.

