@@ -188,56 +188,56 @@ export class Loader {
188188 /**
189189 * See [[LoaderOptions.version]]
190190 */
191- version : string ;
191+ public readonly version : string ;
192192 /**
193193 * See [[LoaderOptions.apiKey]]
194194 */
195- apiKey : string ;
195+ public readonly apiKey : string ;
196196 /**
197197 * See [[LoaderOptions.channel]]
198198 */
199- channel : string ;
199+ public readonly channel : string ;
200200 /**
201201 * See [[LoaderOptions.client]]
202202 */
203- client : string ;
203+ public readonly client : string ;
204204 /**
205205 * See [[LoaderOptions.id]]
206206 */
207- id : string ;
207+ public readonly id : string ;
208208 /**
209209 * See [[LoaderOptions.libraries]]
210210 */
211- libraries : Libraries ;
211+ public readonly libraries : Libraries ;
212212 /**
213213 * See [[LoaderOptions.language]]
214214 */
215- language : string ;
215+ public readonly language : string ;
216216
217217 /**
218218 * See [[LoaderOptions.region]]
219219 */
220- region : string ;
220+ public readonly region : string ;
221221
222222 /**
223223 * See [[LoaderOptions.mapIds]]
224224 */
225- mapIds : string [ ] ;
225+ public readonly mapIds : string [ ] ;
226226
227227 /**
228228 * See [[LoaderOptions.nonce]]
229229 */
230- nonce : string | null ;
230+ public readonly nonce : string | null ;
231231
232232 /**
233233 * See [[LoaderOptions.retries]]
234234 */
235- retries : number ;
235+ public readonly retries : number ;
236236
237237 /**
238238 * See [[LoaderOptions.url]]
239239 */
240- url : string ;
240+ public readonly url : string ;
241241
242242 private CALLBACK = "__googleMapsCallback" ;
243243 private callbacks : ( ( e : ErrorEvent ) => void ) [ ] = [ ] ;
@@ -298,7 +298,7 @@ export class Loader {
298298 Loader . instance = this ;
299299 }
300300
301- get options ( ) : LoaderOptions {
301+ public get options ( ) : LoaderOptions {
302302 return {
303303 version : this . version ,
304304 apiKey : this . apiKey ,
@@ -323,7 +323,7 @@ export class Loader {
323323 *
324324 * @ignore
325325 */
326- createUrl ( ) : string {
326+ public createUrl ( ) : string {
327327 let url = this . url ;
328328
329329 url += `?callback=${ this . CALLBACK } ` ;
@@ -366,7 +366,7 @@ export class Loader {
366366 /**
367367 * Load the Google Maps JavaScript API script and return a Promise.
368368 */
369- load ( ) : Promise < typeof google > {
369+ public load ( ) : Promise < typeof google > {
370370 return this . loadPromise ( ) ;
371371 }
372372
@@ -375,7 +375,7 @@ export class Loader {
375375 *
376376 * @ignore
377377 */
378- loadPromise ( ) : Promise < typeof google > {
378+ public loadPromise ( ) : Promise < typeof google > {
379379 return new Promise ( ( resolve , reject ) => {
380380 this . loadCallback ( ( err : ErrorEvent ) => {
381381 if ( ! err ) {
@@ -390,7 +390,7 @@ export class Loader {
390390 /**
391391 * Load the Google Maps JavaScript API script with a callback.
392392 */
393- loadCallback ( fn : ( e : ErrorEvent ) => void ) : void {
393+ public loadCallback ( fn : ( e : ErrorEvent ) => void ) : void {
394394 this . callbacks . push ( fn ) ;
395395 this . execute ( ) ;
396396 }
@@ -421,7 +421,7 @@ export class Loader {
421421 document . head . appendChild ( script ) ;
422422 }
423423
424- deleteScript ( ) : void {
424+ public deleteScript ( ) : void {
425425 const script = document . getElementById ( this . id ) ;
426426 if ( script ) {
427427 script . remove ( ) ;
0 commit comments