Improving Workers TypeScript support: accuracy, ergonomics and interoperability

This post details significant improvements to the automatic generation of TypeScript types for Cloudflare Workers. Key contributions include: rebuilding generation scripts for accuracy and ease of use, open-sourcing these scripts, generating separate type versions for improved interoperability with browser/standard types (e.g., Remix frameworks), enabling selection of types based on compatibility dates, integrating Wrangler configuration (`wrangler.toml`) for automatic ambient type generation (KV namespaces, R2 buckets, module rules), and embedding documentation directly into types. The underlying generation process now uses `workerd`'s RTTI system and the TypeScript Compiler API, with handwritten overrides for higher-fidelity types (generics, method overloads, renaming, etc.).