Plans for type-safety in template literals #2065
-
I'm currently assessing Panda CSS and if we were to adopt it then we'd been looking at adoption through the template literal syntax. From the docs I can see that one of the Caveats mentioned for template literals is a lack of autocomplete support. Presumably this also means a lack of type safety for tokens in template literals? I'm interested to know whether there's any plans to improve the DX around the use of tokens in template literals or is this inherent to some kind of constraint in the design of Panda that's unlikely to be improved any time soon? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @cbovis, Currently, we don't have plans for type safety in template literals. Our upcoming ESLint plugin might be able to help, though, so you get a hint when using invalid token paths. |
Beta Was this translation helpful? Give feedback.
Hi @cbovis,
Currently, we don't have plans for type safety in template literals. Our upcoming ESLint plugin might be able to help, though, so you get a hint when using invalid token paths.