0no-co / wonka

🎩 A tiny but capable push & pull stream library for TypeScript and Flow
MIT License
709 stars 29 forks source link

Invalid documentation exemple for subscribe #163

Closed geekuillaume closed 1 year ago

geekuillaume commented 1 year ago

Describe the bug

In the documentation for the subscribe method (https://wonka.kitten.sh/api/sinks#subscribe), the unsubscribe method is returned as the first element of an array, but in reality, an object with the unsubscribe key is returned.

Reproduction

https://codesandbox.io/s/wonka-documentation-invalid-f4ch5t

Package version

wonka@6.3.1

Validations