@tracktor/map 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,5 +14,5 @@ interface GetFeatureProps {
14
14
  *
15
15
  * @param {GetFeatureProps} options - Configuration params
16
16
  */
17
- declare const getFeature: ({ map, point }: GetFeatureProps) => (import('mapbox-gl').GeoJSONFeature & import('../types/typeguard').ClickedFeature) | null | undefined;
17
+ declare const getFeature: ({ map, point }: GetFeatureProps) => (import('mapbox-gl').GeoJSONFeature & import('./typeguard').ClickedFeature) | null | undefined;
18
18
  export default getFeature;
@@ -12,6 +12,14 @@ export interface ClickedFeature {
12
12
  properties: FeatureProperties;
13
13
  [key: string]: unknown;
14
14
  }
15
+ /**
16
+ * Type guard to check if the given geometry is a valid GeoJSON Point geometry
17
+ * @param geometry
18
+ */
15
19
  export declare const isFeatureGeometry: (geometry: unknown) => geometry is GeometryPoint;
20
+ /**
21
+ * Type guard to check if the given feature is a ClickedFeature
22
+ * @param feature
23
+ */
16
24
  export declare const isClickedFeature: (feature: unknown) => feature is ClickedFeature;
17
25
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A react library to easily display map with multiple tools",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.4",
6
+ "version": "1.0.5",
7
7
  "type": "module",
8
8
  "main": "dist/main.umd.cjs",
9
9
  "module": "dist/main.js",