FromBytesReturnType

type FromBytesReturnType<TTo> = TTo extends "string"
? string
: TTo extends "hex"
? Hex
: TTo extends "bigint"
? bigint
: TTo extends "number"
? number
: TTo extends "boolean"
? boolean
: never;