FromHexReturnType

type FromHexReturnType<TTo> = TTo extends "string"
? string
: TTo extends "bigint"
? bigint
: TTo extends "number"
? number
: TTo extends "bytes"
? Uint8Array
: TTo extends "boolean"
? boolean
: never;