4 ms·
> Imagine if we could specify JavaScript or TypeScript in the script tag for today’s browsers? JavaScript really should follow Python’s lead here and allow but
by laurencerowe 5y ago
> Imagine if we could specify JavaScript or TypeScript in the script tag for today’s browsers?
JavaScript really should follow Python’s lead here and allow but ignore type annotations. I believe TC39 already reserved the lexical space for it.