[Content]: Typescript "Event handling" and "Advanced JSX attributes and directives" sections
未关闭
还没有人认领这个 Issue。
good first issue
help wanted
planned
solid
- 主要语言
- MDX
- 星标
- 292
- 派生
- 361
- 平均合并
- 7 小时 51 分钟
- 30 天内合并 PR
- 1
描述
📚 Subject area/topic
Typescript "Event handling" and "Advanced JSX attributes and directives" sections
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/configuration/typescript#event-handling
https://docs.solidjs.com/configuration/typescript#advanced-jsx-attributes-and-directives
https://docs.solidjs.com/configuration/typescript#custom-event-handlers
📋 Description of content that is out-of-date or incorrect
- "Event handling" section and "custom event handler" section are split up, it makes more sense for these to be together
- "custom event handler" section is currently under "Advanced JSX attributes and directives" along with "Forcing properties and custom attributes" and "Custom directives". I'm not sure it makes sense to have these split up. I feel like it would be easier to find if they were all just part of the list of API types. @LadyBluenotes let me know what you think about this one please.
- "Forcing properties and custom attributes" and "Custom directives" are not a high enough level heading to show up in the page outline
- "custom event handler" should be renamed since it also covers standard events, it is really just how to type
on:both custom and standard events - standard events for
on:are not included in SolidJS by default so the types have to be added manually, it should probably just be a subsection rather than a callout
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 TypeScript 页面中三个链接的文档锚点对应的部分开始:Event handling、Advanced JSX attributes and directives,以及 Custom event handlers。检查当前的标题和内容,然后整合并重命名相关部分,使页面大纲和事件类型指导更加清晰。完成的标准是:受影响的主题按逻辑分组,并准确描述标准和自定义的 on: 事件。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 半天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100