g-plane / typed-query-selector

Better typed `querySelector` and `querySelectorAll`.
https://www.npmjs.com/package/typed-query-selector
MIT License
729 stars 11 forks source link

`strict` doesn't detect many errors #30

Closed fregante closed 1 year ago

fregante commented 1 year ago

I was doing some tests on the strict parser and noticed that a few issues weren't detected.

Maybe it's not practical to detect these, it's ok either way.

g-plane commented 1 year ago

I'm afraid that it will make the parser too complex to maintain and execute (which will cost more time to run type checking).

fregante commented 1 year ago

Yeah that's my concern too. It's fine as is