C3: Improve @cloudflare/workers-types
types used for Workers
#4514
Labels
c3
Relating to C3 (create-cloudflare) package
Describe the solution
In C3 when creating a new worker we get the latest compatibility date and apply it to the worker's toml file (source) the
@cloudflare/workers-types
types used do not however match such compatibility date (see comment) causing a confusing and frustrating experience for developers.So we should also:
@cloudflare/workers-types
is updated to its latest version(instead of having the version hardcoded)(probably not an issue since the versions do have^
)This should provide a valid setup for developers and allow them to proceed with their work without type issues.
Note
it is still confusing that there is a compatibility date and a (most likely) different workers-types entrpoint date, that is however an issue that needs to be solved separately and not something that we can address in C3, hopefully this will be addressed in the future making the use of types more straightforward for developers
The text was updated successfully, but these errors were encountered: