MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / isBytesLike

Function isBytesLike

src.ts/utils/data.ts:92–94  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

90 * data (i.e. a valid [[DataHexString]] or a Uint8Array).
91 */
92export function isBytesLike(value: any): value is BytesLike {
93 return (isHexString(value, true) || (value instanceof Uint8Array));
94}
95
96const HexCharacters: string = "0123456789abcdef";
97

Callers

nothing calls this directly

Calls 1

isHexStringFunction · 0.70

Tested by

no test coverage detected