Skip to content

partywhen: Some methods incorrectly return 'never' in TypeScript #190

Open
@jahands

Description

@jahands

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions