stylex icon indicating copy to clipboard operation
stylex copied to clipboard

Safe typings for TypeScript v4

Open dimitur2204 opened this issue 5 months ago • 12 comments

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

image

dimitur2204 avatar Jan 09 '24 13:01 dimitur2204