Skip to content

Not typed like a cycle.js driver #28

@ornicar

Description

@ornicar

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions