From 6d74c69af21050e39f9472f75f94aa1c484f025f Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Wed, 20 Mar 2024 13:14:25 -0400 Subject: [PATCH] chore: lint --- handler.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/handler.ts b/handler.ts index 6c1b33d..3bc8739 100644 --- a/handler.ts +++ b/handler.ts @@ -7,7 +7,11 @@ */ import Bugsnag from '@bugsnag/js' import getGeocoder from '@opentripplanner/geocoder' -import { Feature, Geometry, FeatureCollection, GeoJsonProperties } from 'geojson' +import { + Geometry, + FeatureCollection, + GeoJsonProperties +} from 'geojson' import { OfflineResponse } from '@opentripplanner/geocoder/lib/apis/offline' import { @@ -120,11 +124,15 @@ export const makeGeocoderRequests = async ( }) ) - const merged = responses.reduce>( + const merged = responses.reduce< + FeatureCollection + >( (prev, cur, idx) => { if (idx === 0) return cur return mergeResponses({ customResponse: cur, primaryResponse: prev }) - }, {type: "FeatureCollection", features: []}) + }, + { features: [], type: 'FeatureCollection' } + ) return { body: JSON.stringify(merged),