UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

9 lines 431 B
import type { Hash, HashBitLength } from './hash.ts'; /** * Type guard that checks whether a value is a valid hash of the specified bit length. * @param value - The value to check * @param bitLength - The expected bit length of the hash (defaults to 256) * @returns True if the value is a valid Hash */ export declare const isHash: (value: unknown, bitLength?: HashBitLength) => value is Hash; //# sourceMappingURL=is.d.ts.map