TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Missing specific subclass type definitions in StylePropertyMapReadOnly.get() return type

Open ophirbucai opened this issue 1 year ago • 0 comments

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.

ophirbucai avatar Dec 22 '24 14:12 ophirbucai