Skip to content

[BUG] step.run return type becomes unknown  #784

Open
@f15u

Description

@f15u

Describe the bug
Every step.run function returns unknown instead of the correct type.

I don't know the reason. I suspect it has something to do with unions or complex types.
I'm currently using effect and happens with Option, Either or Effect types.

To Reproduce
https://codesandbox.io/p/sandbox/inngest-run-returns-unknown-c49kdd

Expected behavior
It should return the same type as the step.run callback returns.

Code snippets / Logs / Screenshots
https://codesandbox.io/p/sandbox/inngest-run-returns-unknown-c49kdd

System info (please complete the following information):

  • Typescript Version 5.7.2
  • npm package Version 3.28.0

Additional context

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