@tmlmobilidade/utils 20250820.2324.39 → 20250821.4.14
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FeatureCollection,
|
|
1
|
+
import { type FeatureCollection, type Geometry } from 'geojson';
|
|
2
2
|
/**
|
|
3
|
-
* Creates a base GeoJSON feature collection for
|
|
3
|
+
* Creates a base GeoJSON feature collection for the given feature type.
|
|
4
4
|
* @returns A base GeoJSON feature collection with an empty features array.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getBaseGeoJsonFeatureCollection: <T extends Geometry, K>() => FeatureCollection<T, K>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
/**
|
|
3
|
-
* Creates a base GeoJSON feature collection for
|
|
3
|
+
* Creates a base GeoJSON feature collection for the given feature type.
|
|
4
4
|
* @returns A base GeoJSON feature collection with an empty features array.
|
|
5
5
|
*/
|
|
6
|
-
export const
|
|
6
|
+
export const getBaseGeoJsonFeatureCollection = () => {
|
|
7
7
|
return Object.assign({ features: [], type: 'FeatureCollection' });
|
|
8
8
|
};
|
package/package.json
CHANGED