mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-14 14:44:06 +08:00
fix(googlemaps): isAvailable() returns boolean, not an instance of GoogleMap
This commit is contained in:
parent
f8c39c3584
commit
a53ae8f257
@ -64,10 +64,10 @@ export class GoogleMap {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a map object has been created.
|
* Checks if a map object has been created.
|
||||||
* @return {Promise<GoogleMap>} returns a promise that resolves with the Map object (if it exists).
|
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if the plugin is available.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static isAvailable(): Promise<GoogleMap> {
|
static isAvailable(): Promise<boolean> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user