Function: implementsByteStore()
ts
function implementsByteStore<R>(value: unknown): value is ByteStore<R>;Defined in: lib/contracts/byte_store.ts:113
Returns true if value implements the ByteStore interface.
Type Parameters
| Type Parameter | Default type |
|---|---|
R | unknown |
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The 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.