Skip to content

Commit 91d5cb1

Browse files
fix: add type assertion for Nominatim API response
1 parent 028d5f6 commit 91d5cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/map-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function geocodeWithNominatim(query: string): Promise<NominatimResult[]> {
8080
);
8181
}
8282

83-
return response.json();
83+
return response.json() as Promise<NominatimResult[]>;
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)