This repository was archived by the owner on Nov 1, 2021. It is now read-only.
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
Classify for Dom.node #178
Open
Description
Something like Js.Json.classify
and Js.Types.classify
but for Dom.node
s
It would be based on similar tags as
https://github.com/reasonml-community/bs-webapi-incubator/blob/master/src/Webapi/Webapi__Dom/Webapi__Dom__Types.re#L177-L190
But parameterized, ie:
type t =
| Element of Dom.element
| Text of Dom.text
...
let classify (node: Dom.node) : t = ...