wix / stylable

Stylable - CSS for components
https://stylable.io
MIT License
1.26k stars 62 forks source link

refactor(types)!: enhance type definitions for resolved CSS and JS values #2912

Closed idoros closed 9 months ago

idoros commented 9 months ago

This PR enhances the type definitions for resolved CSS and JS values in the following ways:

  1. The CSS resolved type now accurately represents the scenario where the symbol field can be undefined when the stylesheet exists, but the queried symbol definition is missing.
  2. The JS resolved symbol type (exported value) has been updated from the loose any type to the more precise unknown type.