File tree Expand file tree Collapse file tree
dist/samples/advanced-markers-collision Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77// [START maps_advanced_markers_collision]
88const mapElement = document . querySelector ( 'gmp-map' ) ! ;
99
10+ declare namespace mdc {
11+ namespace select {
12+ class MDCSelect {
13+ constructor ( el : Element | null ) ;
14+ listen ( evtType : string , handler : ( event : Event ) => void ) : void ;
15+ value : string ;
16+ }
17+ }
18+ }
19+
1020// Initialize and add the map
1121async function init ( ) : Promise < void > {
1222 // Request needed libraries.
@@ -19,7 +29,6 @@ async function init(): Promise<void> {
1929
2030 const collisionBehavior : google . maps . CollisionBehaviorString = 'REQUIRED' ;
2131
22- // @ts -expect-error: mdc not typed
2332 const select = new mdc . select . MDCSelect (
2433 document . querySelector ( '.mdc-select' )
2534 ) ;
Original file line number Diff line number Diff line change 77// [START maps_advanced_markers_collision]
88const mapElement = document . querySelector ( 'gmp-map' ) ! ;
99
10+ declare namespace mdc {
11+ namespace select {
12+ class MDCSelect {
13+ constructor ( el : Element | null ) ;
14+ listen ( evtType : string , handler : ( event : Event ) => void ) : void ;
15+ value : string ;
16+ }
17+ }
18+ }
19+
1020// Initialize and add the map
1121async function init ( ) : Promise < void > {
1222 // Request needed libraries.
@@ -19,7 +29,6 @@ async function init(): Promise<void> {
1929
2030 const collisionBehavior : google . maps . CollisionBehaviorString = 'REQUIRED' ;
2131
22- // @ts -expect-error: mdc not typed
2332 const select = new mdc . select . MDCSelect (
2433 document . querySelector ( '.mdc-select' )
2534 ) ;
You can’t perform that action at this time.
0 commit comments