diff --git a/src/lib/bahiaGeometryModuleFactory.ts b/src/lib/bahiaGeometryModuleFactory.ts index 8b4f7627..08217a7e 100644 --- a/src/lib/bahiaGeometryModuleFactory.ts +++ b/src/lib/bahiaGeometryModuleFactory.ts @@ -3,10 +3,7 @@ import { feature } from 'topojson-client' import type { BahiaFeature } from '@/lib/bahiaGeometriesTypes' import type { GeometryCollection, Topology } from 'topojson-specification' -type GeometryModuleBase< - Properties extends Record, - TObjectName extends string, -> = { +type GeometryModuleBase, TObjectName extends string> = { topology: Topology<{ [key in TObjectName]: GeometryCollection }> features: readonly BahiaFeature[] } @@ -69,9 +66,7 @@ export function buildGeometryModuleFromTopology< return base } - const featuresByKey = new Map( - features.map((entry) => [entry.properties[keyProperty], entry]), - ) + const featuresByKey = new Map(features.map((entry) => [entry.properties[keyProperty], entry])) return { ...base,