stylex
stylex copied to clipboard
Safe typings for TypeScript v4
Is your feature request related to a problem? Please describe.
The problem is the one mentioned in this issue https://github.com/facebook/stylex/issues/313, where the TypeScript const
modifier is used (https://github.com/microsoft/TypeScript/pull/51865) which was introduced in v5 from what I can see.
Describe a solution you'd like Some way to make the types safe for earlier versions of TypeScript
Describe alternatives you've considered If that is not possible, than atleast some kind of warning somewhere in the docs should be present to indicate the problem
Additional context