Consider adding useful extension module
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- frontend
Hướng nghiên cứu
Xem xét các module API hiện có và ví dụ createElement/createInputElement được đề xuất. Quyết định phạm vi và thiết kế cho bất kỳ module bổ trợ APIExt nào; hoàn thành nghĩa là cấu trúc module dự kiến và các helper có kiểu được hỗ trợ đã được thống nhất và đặc tả rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- ReScript
- Star
- 40
- Fork
- 11
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 12
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rescript-lang/experimental-rescript-webapi
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
-
rescript-lang/experimental-rescript-webapi#237 · 3 người được giao ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
rescript-lang/experimental-rescript-webapi#236 · 1 bình luận ·
-
Improve generated overloads Đang mởhelp wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
rescript-lang/experimental-rescript-webapi#27 · 1 reaction ·
-
API overview Đang mởhelp wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của rescript-lang/experimental-rescript-webapi
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
tvOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bvaughn/react-resizable-panels#751 · 1 bình luận ·
-
www.wiwo.de Đang mởN: AdGuard Browser Extension P3: Medium T: Annoyance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
AdguardTeam/AdguardFilters#242026 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100