Join Nostr
2025-09-24 12:56:12 UTC

Axel Rauschmayer on Nostr: There is a proposal to add optional type annotations to JS: But I’m wondering: ...

There is a proposal to add optional type annotations to JS: https://github.com/tc39/proposal-type-annotations

But I’m wondering: Wouldn’t be better if browsers supported type stripping (like Node.js etc. already do): It feels cleaner to me.

JSPM already supports client-side type stripping (if a file has the filename extension .ts): https://jspm.org/docs/cli/