Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow

Fix docs using old API in some places (#87)

Changed files
+2 -2
docs
+2 -2
docs/api/sources.md
···
const waitForArray = () => Promise.resolve([1, 2, 3]);
const source = make(observer => {
-
const [next, complete] = observer;
+
const { next, complete } = observer;
let cancelled = false;
waitForArray().then(arr => {
···
```typescript
import { makeSubject } from 'wonka'
const subject = Wonka.makeSubject();
-
const [source, next, complete] = subject;
+
const { source, next, complete } = subject;
/* This will push the values synchronously to any subscribers of source */
next(1);