UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

10 lines (8 loc) 281 B
// we use Exclude to intentionally make the type not equal to string export type Hex = Exclude<Lowercase<string>, 'reserved-hex-value'> /** Configuration of validation and output format */ export interface HexConfig { bitLength?: number byteSize?: number prefix?: boolean }