Skip to content

Commit

Permalink
improved ts declarations
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Nov 20, 2023
1 parent 2053187 commit 67ef589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/display/src/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
GeoPoint,
GeoRect,
utils,
GeoJSONFeatureCollection, GeoJSONFeature, GeoJSONBBox, FeatureProvider, GeoJSONCoordinate as Point, CustomLayer
GeoJSONFeatureCollection, GeoJSONFeature, GeoJSONBBox, FeatureProvider, Layer, CustomLayer
} from '@here/xyz-maps-core';
import {FlightAnimator} from './animation/FlightAnimator';
import Copyright from './ui/copyright/Copyright';
Expand Down Expand Up @@ -1322,7 +1322,7 @@ export class Map {
*
* @param layers - the layer(s) that should be refreshed/re-rendered.
*/
refresh(layers?: TileLayer | TileLayer[]) {
refresh(layers?: TileLayer | Layer | (TileLayer|Layer)[]) {
if (!(layers instanceof Array)) {
layers = [layers];
}
Expand Down

0 comments on commit 67ef589

Please sign in to comment.