storage
storage copied to clipboard
Not typed like a cycle.js driver
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 :)