Chore: use strict

This commit is contained in:
Pieter Vander Vennet 2024-12-11 02:33:17 +01:00
parent 6b5b4ddde5
commit 25eb2ae812

View file

@ -6,7 +6,7 @@ import osmtogeojson from "osmtogeojson"
import { FeatureCollection } from "@turf/turf" import { FeatureCollection } from "@turf/turf"
import { Geometry } from "geojson" import { Geometry } from "geojson"
import { OsmTags } from "../../Models/OsmFeature" import { OsmTags } from "../../Models/OsmFeature"
"use strict";
/** /**
* Interfaces overpass to get all the latest data * Interfaces overpass to get all the latest data
*/ */
@ -71,9 +71,9 @@ export class Overpass {
console.warn("No features for", json) console.warn("No features for", json)
} }
const geojson = osmtogeojson(json) const geojson = <FeatureCollection<Geometry, OsmTags>> osmtogeojson(json)
const osmTime = new Date(json.osm3s.timestamp_osm_base) const osmTime = new Date(json.osm3s.timestamp_osm_base)
return [<any>geojson, osmTime] return [geojson, osmTime]
} }
/** /**