diff --git a/src/mapbox/mapbox.ts b/src/mapbox/mapbox.ts index 758eb772..56d8a139 100644 --- a/src/mapbox/mapbox.ts +++ b/src/mapbox/mapbox.ts @@ -63,6 +63,14 @@ export type MapboxProps = Partial { @param {object} currProps @returns {bool} true if anything is changed */ - _updateStyleComponents( - nextProps: MapboxProps & { - light?: Light; - fog?: Fog; - terrain?: Terrain; - }, - currProps: MapboxProps & { - light?: Light; - fog?: Fog; - terrain?: Terrain; - } - ): boolean { + _updateStyleComponents(nextProps: MapboxProps, currProps: MapboxProps): boolean { const map = this._map; let changed = false; if (map.isStyleLoaded()) {