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.

貢獻者指南