Skip to content

Commit 504f7f3

Browse files
authored
Remove type assertion for Map import
1 parent 42a24a1 commit 504f7f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/js-api-loader-map/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function initMap(): Promise<void> {
2222
// [END maps_js_api_loader_map_options]
2323

2424
// Load the Maps library.
25-
const { Map } = (await importLibrary('maps')) as google.maps.MapsLibrary;
25+
const { Map } = (await importLibrary('maps'));
2626

2727
// Set map options.
2828
const mapOptions = {
@@ -38,4 +38,4 @@ async function initMap(): Promise<void> {
3838
}
3939

4040
initMap();
41-
// [END maps_js_api_loader_map]
41+
// [END maps_js_api_loader_map]

0 commit comments

Comments
 (0)