I am attempting to incorporate parameter references in function descriptions like this:
/**
* Deletes the Travel Cost with the given {@param id}
* @param id the id of the travel cost to be deleted
*/
deleteTravelCost(id: number): Observable<{}> { [...] }
Unfortunately, it seems that using {@param id}
does not yield the desired result. When invoking the function, the output is as follows:
(method) TravelCostsService.deleteTravelCost(id: number): Observable<{}>
Deletes the Travel Cost with the given {@param id}
@param id — the id of the travel cost to be deleted
I would like to have a clickable element in the documentation that links to the parameter (within the function's general description, rather than within the parameter description). Is there a correct way to reference a parameter or even the return value of a function in the description? (I am utilizing Visual Studio Code).