storage icon indicating copy to clipboard operation
storage copied to clipboard

Not typed like a cycle.js driver

Open ornicar opened this issue 7 years ago • 0 comments

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

ornicar avatar Jan 29 '18 15:01 ornicar