Skip to content

Commit 6a01c45

Browse files
authored
Refactor map3DElement declaration
Removed unnecessary TypeScript ignore comments and added non-null assertion.
1 parent f697b2a commit 6a01c45

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

samples/3d-camera-position/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ async function initMap(): Promise<void> {
88
// Declare the needed libraries.
99
await google.maps.importLibrary('maps3d');
1010

11-
// prettier-ignore
12-
// @ts-ignore
13-
const map3DElement = document.querySelector('gmp-map-3d') as google.maps.Map3DElement;
11+
const map3DElement = document.querySelector('gmp-map-3d')!;
1412

1513
// Elements from HTML
1614
const headingSlider = document.getElementById(

0 commit comments

Comments
 (0)