Cast empty optional options in constructor

To remove the typescript errors:
```
Property 'xxx' does not exist on type '{}'
```
This commit is contained in:
Frederic Junod
2018-09-03 08:42:00 +02:00
parent a30f8859aa
commit 25c1754052
5 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ class TileWMS extends TileImage {
*/
constructor(opt_options) {
const options = opt_options || {};
const options = opt_options || /** @type {module:ol/source/TileWMS~Options} */ ({});
const params = options.params || {};