Replies: 2 comments
-
Just making sure I'm understanding usage correctly. Does this all make sense to you, and can you confirm this is the most recommended path for generated types + experimental generated runtime types + Vitest?
|
Beta Was this translation helpful? Give feedback.
-
Consider pulling in #5086 as part of this work? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone 👋 Yesterday we released a new experimental command that dynamically generates runtime types for your project, replacing the need for the
@cloudflare/workers-types
package. It is available as ofwrangler 3.66.0
.What is the command?
What does it do?
compatibility_date
andcompatibility_flags
entries of yourwrangler.toml
.@cloudflare/workers-types
.What is the plan?
This is the first step in attempting to remove any pain points in using TypeScript with workers. This manual command could eventually be used as part of an automated system that doesn't require user intervention.
It would therefore be extremely useful to learn about how you use this command, and any ideas you have for automating the process.
The initial docs are available at https://aj-runtime-types.cloudflare-docs-7ou.pages.dev/workers/languages/typescript/#dynamic-runtime-types-experimental
Beta Was this translation helpful? Give feedback.
All reactions