mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refactor: update lint rules
This commit is contained in:
@@ -96,7 +96,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @return {Observable<any>}
|
||||
*/
|
||||
@CordovaFunctionOverride()
|
||||
onTransitionReceived(): Observable<any> { return; };
|
||||
onTransitionReceived(): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Initializes the plugin. User will be prompted to allow the app to use location and notifications.
|
||||
@@ -104,7 +104,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova()
|
||||
initialize(): Promise<void> { return; };
|
||||
initialize(): Promise<void> { return; }
|
||||
|
||||
/**
|
||||
* Adds a new geofence or array of geofences. For geofence object, see above.
|
||||
@@ -112,7 +112,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova()
|
||||
addOrUpdate(geofences: Object | Array<Object>): Promise<void> { return; };
|
||||
addOrUpdate(geofences: Object | Object[]): Promise<void> { return; }
|
||||
|
||||
/**
|
||||
* Removes a geofence or array of geofences. `geofenceID` corresponds to one or more IDs specified when the
|
||||
@@ -121,7 +121,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova()
|
||||
remove(geofenceId: string | Array<string>): Promise<void> { return; };
|
||||
remove(geofenceId: string | string[]): Promise<void> { return; }
|
||||
|
||||
/**
|
||||
* Removes all geofences.
|
||||
@@ -129,7 +129,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova()
|
||||
removeAll(): Promise<void> { return; };
|
||||
removeAll(): Promise<void> { return; }
|
||||
|
||||
/**
|
||||
* Returns an array of geofences currently being monitored.
|
||||
@@ -137,7 +137,7 @@ export class Geofence extends IonicNativePlugin {
|
||||
* @returns {Promise<Array<string>>}
|
||||
*/
|
||||
@Cordova()
|
||||
getWatched(): Promise<string> { return; };
|
||||
getWatched(): Promise<string> { return; }
|
||||
|
||||
/**
|
||||
* Called when the user clicks a geofence notification. iOS and Android only.
|
||||
|
||||
Reference in New Issue
Block a user