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

Configure Feed

Select the types of activity you want to include in your feed.

Fix fromDomEvent example so compiles. (#73)

* Update sources.md

Capitalization Typo in cods.

* Update sources.md

Fix fromDomEvent example so compiles.
```ocaml
This has type:
option(Dom.element)
But somewhere wanted:
Dom.element (defined as
Dom.eventTarget_like(Dom._node(Dom._element(Dom._baseClass))))
```

authored by

Alain Armand and committed by
Phil Plückthun
38c545a7 b629179a

+1 -1
+1 -1
docs/api/sources.md
··· 144 144 open Webapi.Dom; 145 145 open Document; 146 146 147 - let element = getElementById("root", document); 147 + let element = getElementById("root", document)->Belt.Option.getExn; 148 148 149 149 Wonka.fromDomEvent(element, "click") 150 150 |> Wonka.subscribe((. click) => Js.log(click));