Problem
When using Hono with OpenWorkers, there's a type error because Hono's ExecutionContext expects a props property that OpenWorkers' type doesn't have:
error TS2345: Argument of type 'ExecutionContext' is not assignable to parameter of type 'ExecutionContext'.
Property 'props' is missing in type 'ExecutionContext' but required in type 'ExecutionContext'.
Current workaround
ctx: ExecutionContext & { props: never }
Proposed fix
Add props to ExecutionContext in types/workers.d.ts:
interface ExecutionContext {
waitUntil(promise: Promise<unknown>): void;
passThroughOnException(): void;
props: unknown; // For Hono/Cloudflare Workers compatibility
}
This would make OpenWorkers types a drop-in replacement for CF Workers types when using Hono.
Problem
When using Hono with OpenWorkers, there's a type error because Hono's
ExecutionContextexpects apropsproperty that OpenWorkers' type doesn't have:Current workaround
Proposed fix
Add
propstoExecutionContextintypes/workers.d.ts:This would make OpenWorkers types a drop-in replacement for CF Workers types when using Hono.