cloudflare / cloudflare/workerd

ExecutionContext can't be defined

Open
#5,617 13 comments 0 reactions 1 assignee Claimed by @workers-devprod View on GitHub
types
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

### Problem:
In the latest version type of ExecutionContext was changed from any to unknown.

Before (version 4.20250816.0):
```
interface ExecutionContext {
waitUntil(promise: Promise): void;
passThroughOnException(): void;
props: any;
}
```

After (version 4.20251128.0):
```
interface ExecutionContext {
waitUntil(promise: Promise): void;
passThroughOnException(): void;
readonly exports: Cloudflare.Exports;
readonly props: Props;
}
```

Because of this change our Typescript compiler is complaining that property that we have in context doesn't exist on unknown.

### Proposal:
I am raising a PR where I added option to pass type to ExecutionContext.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.