Mark optional property with square brackets

This commit is contained in:
Frederic Junod
2018-03-12 15:52:11 +01:00
parent 1de1bda252
commit 813b72251a
4 changed files with 21 additions and 25 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const Direction = {
/**
* @typedef {Object} Options
* @property {string|undefined} className CSS class name.
* @property {number|undefined} duration Animation duration in milliseconds. Default is `200`.
* @property {number|undefined} [duration=200] Animation duration in milliseconds.
* @property {number|undefined} maxResolution Maximum resolution.
* @property {number|undefined} minResolution Minimum resolution.
* @property {function(ol.MapEvent)|undefined} render Function called when the control