cloudflare / cloudflare/partykit
partywhen: Some methods incorrectly return 'never' in TypeScript
Open
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
I tried to use this in a project, but am finding it difficult to get it working due to incorrect return types on some methods:

Any idea how to fix this?
Repro here: https://github.com/jahands/partywhen-typescript-repro/blob/main/src/index.ts
To test, run `pnpm install` and then hover over the `scheduler.scheduleTask()` call in `index.ts`
Contributor guide
Assessment
This issue has not been assessed yet.