DefinitelyTyped/types/ol/ol-tests.ts: changed cast <any> to as any

changed due no-angle-bracket-type-assertion rule
This commit is contained in:
BlondeLlama 2018-11-21 16:33:09 +01:00 committed by GitHub
parent 53563af88d
commit a7409f00a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,7 +303,7 @@ import VectorTile from 'ol/vectortile';
import View from 'ol/view';
// Map
const map: ol.Map = new Map(<any> {});
const map: ol.Map = new Map({} as any);
declare const mapView: View;
declare const layerBase: LayerBase;
declare const control: ControlControl;
@ -320,6 +320,6 @@ declare const size: ol.Size;
declare const position: ol.Pixel;
view = map.getView();
view.getProjection();
view.animate(<any> {});
view.calculateExtent(<any> 'size');
view.animate({} as any);
view.calculateExtent('size' as any);
view.centerOn(coordinate, size, position);