Consider adding useful extension module
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- frontend
调研方向
审查现有的 API 模块以及提议的 createElement/createInputElement 示例。确定任何 APIExt 配套模块的范围和设计;完成标准是已就预期的模块结构和支持的类型化辅助函数达成一致,并对其作出明确规定。
由索引模型根据 Issue 内容生成。
描述
While the aspiration of this project is to have bindings for anything available in the browser, it might be interesting consider having an additional auxiliary module.
Or to phrase it differently: some API methods are shit. Like https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement. You pass it any string and get an element back. Maybe you want to create something more specific and get a better type back like document.createElement("input") and get HTMLInputElement back.
So having something like:
type document
type htmlInputElement
@scope("document")
external createInputElement: (unit, @as("input") _) => htmlInputElement =
"createElement"
let i = createInputElement()
The input string can't be misspelled and the return type is better.
Perhaps each current API module can have an APIExt companion module?
Let me know what you thoughts.
- 主要语言
- ReScript
- 星标
- 41
- 派生
- 11
- 平均合并
- 9 小时 46 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rescript-lang/experimental-rescript-webapi 的其他 Issue
-
Add an opt-in SafeFetch wrapper for result-based Fetch workflows可能已有人在做 @jderochervlk 于 28 天前认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 38/100
-
Simplify package module/type structure可能重新可做 @jderochervlk 于 185 天前认领,目前没有进行中的 PR。 未关闭
rescript-lang/experimental-rescript-webapi#237 · 已指派 3 人 ·
-
难度 5/5 一周以上 新手友好度 35/100
rescript-lang/experimental-rescript-webapi#236 · 1 条评论 ·
-
help wanted
难度 5/5 一周以上 新手友好度 25/100
rescript-lang/experimental-rescript-webapi#27 · 1 个 reaction ·
-
API overview未关闭help wanted
难度 5/5 一周以上 新手友好度 25/100
查看 rescript-lang/experimental-rescript-webapi 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 88/100
Riloox/hostkind-open#42 ·
-
难度 2/5 1-3 小时 新手友好度 79/100
warlock20/StartWithA#380 ·
维护者通常 1 天内回复
-
area:i18n
难度 2/5 1-3 小时 新手友好度 72/100
Comfy-Org/ComfyUI_frontend#21470 ·
维护者通常 1 天内回复