swiftwasm / swiftwasm/JavaScriptKit
Add an implementation for `JSValueEncoder`
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Swift
- 星标
- 986
- 派生
- 76
- 平均合并
- 21 小时 11 分钟
- 30 天内合并 PR
- 4
描述
Do I understand correctly that there's no easy way right now to convert an arbitrary Encodable type to JSValue? We already have JSValueDecoder, but apparently lack the opposite for Encodable...
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读现有的 JSValueDecoder 实现及其周围的 API,以了解 JavaScript 值是如何表示的。设计并实现对应的 JSValueEncoder,使任意 Encodable 值都能转换为 JSValue,然后添加测试覆盖,展示具有代表性的 Encodable 值可以通过 encoder 和 decoder 完成 round-trip。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, swift, wasm
- 领域
- api, web-dev
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100