mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
jsdoc style guide update (#1932)
This commit is contained in:
parent
4dbc33c6e3
commit
b2f15cf21a
1 changed files with 9 additions and 1 deletions
|
@ -230,7 +230,15 @@ For example:
|
|||
|
||||
Do not document function arguments unless they are non-obvious of their intent
|
||||
(though if they are non-obvious intent, the API should be considered anyways).
|
||||
Therefore `@param` should generally not be used.
|
||||
Therefore `@param` should generally not be used. If `@param` is used, it should
|
||||
not include the `type` as Typescript is already strongly typed.
|
||||
|
||||
```ts
|
||||
/**
|
||||
* Function with non obvious param
|
||||
* @param foo Description of non obvious parameter
|
||||
*/
|
||||
```
|
||||
|
||||
Vertical spacing should be minimized whenever possible. Therefore single line
|
||||
comments should be written as:
|
||||
|
|
Loading…
Reference in a new issue