@tmlmobilidade/utils 20250820.2349.48 → 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, Point } from 'geojson';
1
+ import { type FeatureCollection, type Geometry } from 'geojson';
2
2
  /**
3
- * Creates a base GeoJSON feature collection for point features.
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 getBaseGeoJsonFeatureCollectionPoint: <T>() => FeatureCollection<Point, T>;
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 point features.
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 getBaseGeoJsonFeatureCollectionPoint = () => {
6
+ export const getBaseGeoJsonFeatureCollection = () => {
7
7
  return Object.assign({ features: [], type: 'FeatureCollection' });
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/utils",
3
- "version": "20250820.2349.48",
3
+ "version": "20250821.4.14",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",