Skip to content

Commit

Permalink
fix(map): remove @ts-expect-error after @types/google.maps update
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Sep 2, 2024
1 parent f22af50 commit deb2bc7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/map/use-map-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ export function useMapInstance(
map = new google.maps.Map(mapDiv, {
...mapOptions,
renderingType: renderingType as google.maps.RenderingType,
// The colorScheme option and google.maps.ColorScheme type haven't been added
// to the @types/google.maps package yet, so this will cause a TS error:
// @ts-expect-error TS2353: Object literal may only specify known properties,
// and colorScheme does not exist in type MapOptions
colorScheme: colorScheme as google.maps.ColorScheme
});
}
Expand Down

0 comments on commit deb2bc7

Please sign in to comment.