ExecutionContext type mismatch in @cloudflare/workers-types
and PlatformProxy
#3290
Labels
types
Related to @cloudflare/workers-types
In latest version of wrangler types (4.20241230.0) there is a mismatch between the
ExecutionContext
type returned byPlatformProxy
/getPlatformProxy
and the type exported from@cloudflare/workers-types
. This is causing type errors and appears to be an oversight/bugAs you can see there is no
props
in the wrangler-dist types, but it is expected in@cloudflare/workers-types
ressulting in typescript errorsTo work around this I have had to make the following changes:
Can this be addressed and fixed? Ideally PlatformProxy and @cloudflare/workers-types should match for all types
The text was updated successfully, but these errors were encountered: