Consider adding useful extension module
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 領域
- frontend
研究方向
檢視現有的 API 模組以及提議的 createElement/createInputElement 範例。決定任何 APIExt 配套模組的範圍與設計;完成標準是已就預期的模組結構和支援的具型別 helper 達成共識,並予以明確規範。
由索引模型根據 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
- 星號
- 40
- 分支
- 11
- 平均合併
- 3 天 12 小時
- 30 天內合併 PR
- 12
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
rescript-lang/experimental-rescript-webapi 的其他 Issue
-
enhancement
難度 5/5 一週以上 新手友好度 38/100
-
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
-
comp/dashboard P3 type/bug
難度 2/5 1-3 小時 新手友好度 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難度 2/5 1-3 小時 新手友好度 78/100
-
tvOS
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
bvaughn/react-resizable-panels#751 · 1 則留言 ·
-
www.wiwo.de 未關閉N: AdGuard Browser Extension P3: Medium T: Annoyance
難度 2/5 1-3 小時 新手友好度 65/100
AdguardTeam/AdguardFilters#242026 ·