@2gis/mapgl
Advanced tools
Comparing version 1.15.0 to 1.15.1
{ | ||
"name": "@2gis/mapgl", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"description": "MapGL API script loader with typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -378,3 +378,3 @@ import { LngLatBounds } from '../objects/lngLatBounds'; | ||
/** | ||
* Capture events if set. Otherwise events will passed to the map. | ||
* Capture events if set. Otherwise events will passed to the map. By default it's `true`. | ||
*/ | ||
@@ -381,0 +381,0 @@ preventMapInteractions?: boolean; |
@@ -6,3 +6,10 @@ export declare type RequiredExcept<T, K extends keyof T> = T & Required<Omit<T, K>>; | ||
export declare type DefaultOptionalOptions<T extends object> = Required<Pick<T, RequiredOptional<T>>>; | ||
/** | ||
* Возвращает новый объект в котором заполнены дефолтными значениями все пропущенные | ||
* опциональные параметры исходного объекта. | ||
* | ||
* @param params | ||
* @param defaults | ||
*/ | ||
export declare function applyOptionalDefaults<T extends object>(params: T, defaults: DefaultOptionalOptions<T>): Required<T>; | ||
export {}; |
59470
1889