mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Revert "chore(package): bump dependencies and lint rules"
This reverts commit 21ad4734fa.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
export interface ToastOptions {
|
||||
@@ -69,6 +69,7 @@ export interface ToastOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class Toast extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Show a native toast for the given duration at the specified position.
|
||||
*
|
||||
@@ -81,18 +82,14 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
show(message: string, duration: string, position: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
show(message: string, duration: string, position: string): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Manually hide any currently visible toast.
|
||||
* @returns {Promise<any>} Returns a Promise that resolves on success.
|
||||
*/
|
||||
@Cordova()
|
||||
hide(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
hide(): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Show a native toast with the given options.
|
||||
@@ -109,9 +106,7 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showWithOptions(options: ToastOptions): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showWithOptions(options: ToastOptions): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'short', 'top')`.
|
||||
@@ -122,9 +117,7 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showShortTop(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showShortTop(message: string): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'short', 'center')`.
|
||||
@@ -135,9 +128,8 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showShortCenter(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showShortCenter(message: string): Observable<any> { return; }
|
||||
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'short', 'bottom')`.
|
||||
@@ -148,9 +140,8 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showShortBottom(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showShortBottom(message: string): Observable<any> { return; }
|
||||
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'long', 'top')`.
|
||||
@@ -161,9 +152,8 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showLongTop(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showLongTop(message: string): Observable<any> { return; }
|
||||
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'long', 'center')`.
|
||||
@@ -174,9 +164,8 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showLongCenter(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showLongCenter(message: string): Observable<any> { return; }
|
||||
|
||||
|
||||
/**
|
||||
* Shorthand for `show(message, 'long', 'bottom')`.
|
||||
@@ -187,7 +176,6 @@ export class Toast extends IonicNativePlugin {
|
||||
observable: true,
|
||||
clearFunction: 'hide'
|
||||
})
|
||||
showLongBottom(message: string): Observable<any> {
|
||||
return;
|
||||
}
|
||||
showLongBottom(message: string): Observable<any> { return; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user