nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
1.98k stars 77 forks source link

fix: Remove `const` from types-v2 declarations.ts #284

Closed jeppester closed 1 year ago

jeppester commented 1 year ago

The const was breaking the types in our Solito-app.

I might be wrong, but it looks like the const was a typo.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dripsy âś… Ready (Inspect) Visit Preview đź’¬ Add feedback May 1, 2023 8:27am
nandorojo commented 1 year ago

it’s not a typo, you’d need to upgrade to TS 5 to use it. i can look into removing it and see if it breaks things

benfavre commented 1 year ago

Had to come here to find out why I can't build my app. Edit : TS5 does indeed fix it.

jeppester commented 1 year ago

it’s not a typo, you’d need to upgrade to TS 5 to use it. i can look into removing it and see if it breaks things

Ah, I wasn't completely familiar with all the TS5 features yet. I'm closing this, but I guess it might serve as documentation for future users running into the same issue.