cloudflare / cloudflare/partykit

partywhen: Some methods incorrectly return 'never' in TypeScript

Open
#190 2 comments 2 reactions 0 assignees View on GitHub
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:
![Image](https://github.com/user-attachments/assets/ce1149ce-91f5-4260-b2d4-f48ce51a17fc)

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

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.