Type Alias: ScriptElementDataSetType
ts
type ScriptElementDataSetType = Partial<CamelCasedProperties<Record<Replace<ValueOf<typeof ScriptElementDataAttributesNames>, "data-", "">, string>>>;The attributes of ScriptElementDataAttributesNames as HTMLElement.dataset keys, all optional and of type string.
Remarks
dataset converts the attribute names to camel case without the data- prefix, i.e. data-td-api-key becomes tdApiKey.