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

Not typed like a cycle.js driver #28

Open
ornicar opened this issue Jan 29, 2018 · 0 comments
Open

Not typed like a cycle.js driver #28

ornicar opened this issue Jan 29, 2018 · 0 comments

Comments

@ornicar
Copy link

ornicar commented Jan 29, 2018

Minimal project to reproduce: https://gist.github.com/ornicar/fc1d6a4b08bee7c8bcd64ffee55797e1

It won't compile with TypeScript. The storageDriver expected type is Driver<Stream<StorageRequest>, StorageSource>, but instead it has the type (request$: Stream<StorageRequest>) => ResponseCollection.

And therefore it won't compile as a driver.

I'm new to cycle.js and so probably I'm doing something wrong. But I can't figure out what. Help please :)

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