fix: also widen HTMLAttributes['style'] to StyleValue

I only updated SVGAttributes['style'] in the previous commit and missed
the HTMLAttributes one, which left object/array styles failing the type
check on regular HTML elements.
pull/18176/head
Mathias Picker 4 months ago
parent 3e2d1a89c3
commit cd5b9add37

@ -776,7 +776,7 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
placeholder?: string | undefined | null; placeholder?: string | undefined | null;
slot?: string | undefined | null; slot?: string | undefined | null;
spellcheck?: Booleanish | undefined | null; spellcheck?: Booleanish | undefined | null;
style?: string | undefined | null; style?: StyleValue | undefined | null;
tabindex?: number | undefined | null; tabindex?: number | undefined | null;
title?: string | undefined | null; title?: string | undefined | null;
translate?: 'yes' | 'no' | '' | undefined | null; translate?: 'yes' | 'no' | '' | undefined | null;

Loading…
Cancel
Save