winglang/wing

Expose `@returns` in standard library docs

Open

#3,169 创建于 2023年6月29日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)TypeScript (214 fork)github user discovery
good first issue🎨 sdk📚 documentation

仓库指标

Star
 (5,385 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We should expose the @returns docstring of methods on our documentation.

For example - @returns for array.contains(...) (see the code here) should be exposed in the corresponding docs.

Implementation Notes

Probably a good place to start looking how to tweak our jsii-docgen extension to show the @returns annotation is this file: https://github.com/winglang/wing/blob/main/apps/jsii-docgen/src/docgen/transpile/wing.ts See the contribution docs for how to test doc changes locally.

贡献者指南