DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Use `is like` in some cases #1208

Closed edemaine closed 2 months ago

edemaine commented 2 months ago

I think these show some nice examples of is like.

On the other hand, I currently can't get VSCode to parse these files with these changes (because it's refusing to use updated Civet in node_modules), so can't get TS feedback, so we might want to fix that first...

STRd6 commented 2 months ago

On the other hand, I currently can't get VSCode to parse these files with these changes (because it's refusing to use updated Civet in node_modules), so can't get TS feedback, so we might want to fix that first...

I had a similar problem recently and had to quit and restart VSCode which seemed to fix it... 🤷

edemaine commented 2 months ago

I figured out the issue: when running the VSCode on the Civet repo (at least when that repo is npm linked?), I get the live version of Civet from that repo in dist. I hadn't run yarn build in a while, so I wasn't getting the updates, despite the version number appearing correct.