【文件属性】:
文件名称:bs-webapi-incubator:BuckleScript 绑定到 DOM 和其他 Web API
文件大小:103KB
文件格式:ZIP
更新时间:2021-05-31 05:15:04
javascript ocaml bindings bucklescript reason
bs-webapi
与 DOM 和其他 Web API 的实验性绑定。
API 文档可在,但文档注释很少,因为代码主要由带有类型签名的外部声明组成。 这些绑定通常也与它们绑定到的 Web API 对应得很好,因此将 MDN 与 GitHub 一起使用应该会有很长的路要走。
安装
npm install bs-webapi
然后加入bs-webapi到bs-dependencies于你的bsconfig.json 。 一个最小的例子:
{
"name": "my-thing",
"sources": "src",
"bs-dependencies": ["bs-webapi"]
}
用法
查看
请仅使用通过顶层模块Webapi公开的模块,例如Webapi.Dom.Element 。 特别是,不要使用像Webapi__Dom__Element这样的“扁平”模块,因为它们被