winglang/wing

Expose `@returns` in standard library docs

Open

#3 169 ouverte le 29 juin 2023

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)TypeScript (214 forks)github user discovery
good first issue🎨 sdk📚 documentation

Métriques du dépôt

Stars
 (5 385 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur