You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, StylePropertyMapReadOnly.get() returns undefined | CSSStyleValue for all CSS properties. This doesn't reflect the CSS Typed OM specification where different properties return specific subclasses like CSSUnitValue, CSSKeywordValue, and CSSTransformValue.
I have a PR ready that addresses this by narrowing down the return types based on property names.
The text was updated successfully, but these errors were encountered:
ophirbucai
added a commit
to ophirbucai/TypeScript-DOM-lib-generator
that referenced
this issue
Dec 22, 2024
Currently,
StylePropertyMapReadOnly.get()
returnsundefined | CSSStyleValue
for all CSS properties. This doesn't reflect the CSS Typed OM specification where different properties return specific subclasses likeCSSUnitValue
,CSSKeywordValue
, andCSSTransformValue
.I have a PR ready that addresses this by narrowing down the return types based on property names.
The text was updated successfully, but these errors were encountered: