Could we have TypeScript with no build step? Could we have types in JavaScript? Maybe! We're exploring bringing optional type syntax into the JavaScript language! devblogs.microsoft.com/typescript/a-p…
devblogs.microsoft.com
A Proposal For Type Syntax in JavaScript - TypeScript
Today we’re excited to announce our support and collaboration on a new Stage 0 proposal to bring optional and erasable type syntax to JavaScript. Because this new syntax wouldn’t change how surroun...
The Types as Comments proposal means that browsers could run TypeScript-checked code directly, (even though they wouldn't do any type-checking). That means faster iteration with all the type-checking and editing experience you know and love today.
We're excited to hear what you think of this idea! We're hoping that this proposal can make coding easier for TypeScript and JavaScript users at every scale.
Typescript can already run ES modules directly, with inline type checking in VSCode or CLI type checking using TSC When the types are defined using JSDoc This change to the ECMA262 spec is a regression from existing functionality
This comment clarified it more, because type-checking in browser wouldn't make it better, in fact it would move the error from compile to runtime and also slow down. But just being able to run and ignore the types - yes, that has benefits for development
United States Trends
- 1. GeForce Season 3,738 posts
- 2. Everton 141K posts
- 3. Comey 178K posts
- 4. Amorim 59.9K posts
- 5. Mark Kelly 117K posts
- 6. Manchester United 82.8K posts
- 7. Seton Hall 2,247 posts
- 8. Pickford 11K posts
- 9. Opus 4.5 8,550 posts
- 10. UCMJ 17.4K posts
- 11. Benedict Arnold 3,649 posts
- 12. Hegseth 45.1K posts
- 13. St. John 8,217 posts
- 14. #MUFC 24.2K posts
- 15. Halligan 54.3K posts
- 16. #MUNEVE 15.7K posts
- 17. #OTGala10 135K posts
- 18. 49ers 18.8K posts
- 19. Happy Thanksgiving 16.3K posts
- 20. #sjubb N/A
Something went wrong.
Something went wrong.