DanielXMoore / Civet

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

Support for `unique symbol` type in TS #1323

Closed STRd6 closed 4 months ago

STRd6 commented 4 months ago

Fixes:

const callbacks: unique symbol = Symbol("eventCallbacks")

Where it fails to detect that unique symbol is a type.

https://civet.dev/playground?code=Y29uc3QgY2FsbGJhY2tzOiB1bmlxdWUgc3ltYm9sID0gU3ltYm9sKCJldmVudENhbGxiYWNrcyIp