UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

9 lines 403 B
import type { Hex, HexConfig } from './hex.ts'; /** * Type guard that checks whether a value is a valid hex string. * @param value - The value to check * @param config - Optional configuration for prefix and bit length validation * @returns True if the value is a valid Hex string */ export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex; //# sourceMappingURL=is.d.ts.map