Use Object<Foo, Bar> instead of Object.<Foo, Bar>
This commit is contained in:
@@ -64,7 +64,7 @@ class Atlas {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Object.<string, module:ol/style/Atlas~AtlasInfo>}
|
||||
* @type {Object<string, module:ol/style/Atlas~AtlasInfo>}
|
||||
*/
|
||||
this.entries_ = {};
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class IconImageCache {
|
||||
constructor() {
|
||||
|
||||
/**
|
||||
* @type {!Object.<string, module:ol/style/IconImage>}
|
||||
* @type {!Object<string, module:ol/style/IconImage>}
|
||||
* @private
|
||||
*/
|
||||
this.cache_ = {};
|
||||
|
||||
@@ -466,10 +466,10 @@ export function createDefaultStyle(feature, resolution) {
|
||||
|
||||
/**
|
||||
* Default styles for editing features.
|
||||
* @return {Object.<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} Styles
|
||||
* @return {Object<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} Styles
|
||||
*/
|
||||
export function createEditingStyle() {
|
||||
/** @type {Object.<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} */
|
||||
/** @type {Object<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} */
|
||||
const styles = {};
|
||||
const white = [255, 255, 255, 1];
|
||||
const blue = [0, 153, 255, 1];
|
||||
|
||||
Reference in New Issue
Block a user