Cast empty optional options in constructor
To remove the typescript errors:
```
Property 'xxx' does not exist on type '{}'
```
This commit is contained in:
@@ -64,7 +64,7 @@ class ImageWMS extends ImageSource {
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
|
||||
const options = opt_options || {};
|
||||
const options = opt_options || /** @type {module:ol/source/ImageWMS~Options} */ ({});
|
||||
|
||||
super({
|
||||
attributions: options.attributions,
|
||||
|
||||
Reference in New Issue
Block a user