Skip to content
1 min read · 99 words

Function: implementsByteStore() ​

ts
function implementsByteStore<R>(value: unknown): value is ByteStore<R>;

Defined in: src/lib/contracts/byte_store.ts:116

Returns true if value implements the ByteStore interface.

Type Parameters ​

Type ParameterDefault type
Runknown

Parameters ​

ParameterTypeDescription
valueunknownThe value to test.

Returns ​

value is ByteStore<R>

true when value conforms to the ByteStore interface.

Remarks ​

Duck-typed: checks that value is non-null with write, read, and delete as callable functions. Does not use instanceof — there is no ByteStore constructor.