Modern web types

Title “Modern Web Types” next to a photo of Philip Walton, and code editors showing errors “Property startViewTransition does not exist” and “Property scripts does not exist”.

Philip Walton got tired of TypeScript flagging the View Transition API, Long Animation Frame API, and fetchLater() as errors, because its official DOM types only cover APIs shipped in two engines. So he published modern-web-types, a drop-in replacement built with the same generator and W3C webref data, but with a single-engine threshold: 433 extra interfaces, 223 globals, and 311 members on existing interfaces.

philipwalton.com/articles/modern-web-types