Mark optional property with square brackets
This commit is contained in:
@@ -11,13 +11,13 @@ import {listen, unlistenByKey} from '../events.js';
|
||||
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {Element|undefined} element The element is the control's
|
||||
* @property {Element} [element] The element is the control's
|
||||
* container element. This only needs to be specified if you're developing
|
||||
* a custom control.
|
||||
* @property {function(module:ol/MapEvent~MapEvent)|undefined} render Function called when
|
||||
* @property {function(module:ol/MapEvent~MapEvent)} [render] Function called when
|
||||
* the control should be re-rendered. This is called in a `requestAnimationFrame`
|
||||
* callback.
|
||||
* @property {Element|string|undefined} target Specify a target if you want
|
||||
* @property {Element|string} [target] Specify a target if you want
|
||||
* the control to be rendered outside of the map's viewport.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user