AttributeType:
    | "boolean"
    | "number"
    | "string"
    | readonly string[]
    | (raw: string) => unknown

How a data-hl-* attribute on a component root is parsed into an option:

  • 'boolean': present (or "true") is true, "false" is false.
  • 'number': parsed with Number(); non-numeric values are ignored.
  • 'string': taken verbatim.
  • a list of strings: accepted only when the value is one of them.
  • a function: called with the raw string; return undefined to ignore it.