Skip to content

Commit 31af3df

Browse files
committed
chore: type fixes
1 parent 22e2a7f commit 31af3df

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export default function App() {
215215
</div>
216216
<div className="flex flex-col gap-4 rounded border border-zinc-200 p-3 dark:border-zinc-700">
217217
<ErrorBoundary FallbackComponent={ErrorFallback}>
218+
{/* @ts-expect-error Geocode types are messed up */}
218219
<Geocode {...geocodeOptions} />
219220
<details className="group">
220221
<summary className="flex cursor-default list-none items-center gap-1 rounded outline-0 outline-offset-2 transition-all focus:outline-2 focus:outline-primary-900 focus:dark:outline-secondary-600 [&::-webkit-details-marker]:hidden">

src/components/MapContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const MapContainer = ({ onClick }: { onClick?: __esri.ViewImmediateClickE
3535
mapView.current = new MapView({
3636
container: mapNode.current,
3737
map: mapComponent.current,
38-
extent: new Polygon(randomExtent.geometry).extent,
38+
extent: new Polygon(randomExtent.geometry!).extent!,
3939
ui: {
4040
components: ['zoom'],
4141
},

src/components/data/cityExtents.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const extents: __esri.GraphicProperties[] = [
1414
spatialReference: {
1515
wkid: 3857,
1616
},
17-
} as __esri.PolygonProperties,
17+
},
1818
attributes: {
1919
name: 'Farmington',
2020
},
@@ -34,7 +34,7 @@ const extents: __esri.GraphicProperties[] = [
3434
spatialReference: {
3535
wkid: 3857,
3636
},
37-
} as __esri.PolygonProperties,
37+
},
3838
attributes: {
3939
name: 'Ogden',
4040
},
@@ -54,7 +54,7 @@ const extents: __esri.GraphicProperties[] = [
5454
spatialReference: {
5555
wkid: 3857,
5656
},
57-
} as __esri.PolygonProperties,
57+
},
5858
attributes: {
5959
name: 'Salt Lake City',
6060
},
@@ -74,7 +74,7 @@ const extents: __esri.GraphicProperties[] = [
7474
spatialReference: {
7575
wkid: 3857,
7676
},
77-
} as __esri.PolygonProperties,
77+
},
7878
attributes: {
7979
name: 'Provo',
8080
},

0 commit comments

Comments
 (0)