Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSE Event Stream: Argument of type (send: SendFunction) => void is not assignable to parameter of type InitFunctio #378

Open
cjoecker opened this issue Aug 9, 2024 · 0 comments

Comments

@cjoecker
Copy link
Contributor

cjoecker commented Aug 9, 2024

Describe the bug

The eventStream function is showind the error TS2345: Argument of type (send: SendFunction) => void is not assignable to parameter of type InitFunction. Type void is not assignable to type CleanupFunction with the example code from the docs

Steps to Reproduce the Bug or Issue

  1. Copy this example code from the docs to any app using remix-utils
  2. See typescript error

Expected behavior

The example shows that a clean function should be returned.

Platform

"remix-utils": "^7.6.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant