You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: developer_docs/inline_documentation.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,13 @@ If the parameter is optional, add square brackets around the name:
68
68
@param {type} [name] Description here.
69
69
```
70
70
71
+
If the parameter takes one or more values defined in `constants.js`,
72
+
then the type should be specified as `{Constant}` and the valid values should be enumerated in the comment following the `either` keyword, eg:
73
+
74
+
```
75
+
@param {Constant} horizAlign horizontal alignment, either LEFT, CENTER, or RIGHT
76
+
```
77
+
71
78
## Specify return type
72
79
73
80
The `@return` is identical to `@params`, but without the name. It should be the last element in `@method`. The JS types are: String, Number, Boolean, Object, Array, Null, and Undefined. If there is no return type, do not include `@return`.
0 commit comments