frenic / csstype

Strict TypeScript and Flow types for style based on MDN data
MIT License
1.7k stars 69 forks source link

add return type of `getComputedStyle()` #180

Open macmillen opened 1 year ago

macmillen commented 1 year ago

I'd like to propose to add a type for the return value of getComputedStyle().

The return type of getComputedStyle() is CSSStyleDeclaration which e.g. has for the display key string as a type which is I need to narrow down myself.