IsHexString<T, L>: T extends `${HexByte}${infer Tail}` ? IsHexString<Tail, [...L, 0]> : T extends "" ? L["length"] extends 32 ? true : never : never

Type Parameters

  • T extends string

  • L extends readonly number[]