RFC: Support for dot syntax on @param
See original GitHub issueI’m currently working with d.ts files where methods taking object parameters are documented with the following approach:
/**
* Method description.
* @param options addItemOptions - e.g. { id: 1234, title: "someTitle" }
* id: The unique identifier.
* title: The title to assign.
**/
It’s challenging to parse and auto-generate documentation for these parameters given this approach. Ideally there’d be support for dot syntax e.g.:
@param options.id - The unique identifier.
@param options.title - The title to assign.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:43
- Comments:19 (2 by maintainers)
Top Results From Across the Web
RFC 6381 - The 'Codecs' and 'Profiles' Parameters for "Bucket ...
This document obsoletes RFC 4281; RFC 4281 defines the 'codecs' parameter, ... if it will be sufficient to support a subset of the...
Read more >RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
The URI syntax defines a grammar that is a superset of all valid URIs, ... access mechanism and the appropriate parameters necessary to...
Read more >Parameter Serialization - Swagger
Path parameters support the following style values: simple – (default) comma-separated values. Corresponds to the {param_name} URI template. label – dot- ...
Read more >Postfix Configuration Parameters
These parameters support the same filter syntax as described here. ... The Postfix implementation of RFC 2308 negative reply caching relies on the...
Read more >Protocol Registries - Internet Assigned Numbers Authority
Protocol parameter registries represent the authoritative record of many of ... Distributed Denial-of-Service Open Threat Signaling (DOTS) Signal Channel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What’s more of a pain to document is destructured arguments:
For APIs intended for third parties, generally we recommend to give a name to the interface, for example:
Naming the interface improves the structure of the documentation. It also helps developers when they need to work with the object independently, for example:
That said, I believe TypeDoc supports the
@param options.id
notation. If people find it useful, we could include it in the TSDoc standard.