1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00

jsdoc style guide update (#1932)

This commit is contained in:
Vincent LE GOFF 2019-03-15 16:53:21 +01:00 committed by Ryan Dahl
parent 4dbc33c6e3
commit b2f15cf21a

View file

@ -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: