mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(package): bump dependencies and lint rules
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
export type SpeechRecognitionListeningOptions = SpeechRecognitionListeningOptionsIOS | SpeechRecognitionListeningOptionsAndroid;
|
||||
export type SpeechRecognitionListeningOptions =
|
||||
| SpeechRecognitionListeningOptionsIOS
|
||||
| SpeechRecognitionListeningOptionsAndroid;
|
||||
|
||||
export interface SpeechRecognitionListeningOptionsIOS {
|
||||
/**
|
||||
@@ -101,7 +103,6 @@ export interface SpeechRecognitionListeningOptionsAndroid {
|
||||
})
|
||||
@Injectable()
|
||||
export class SpeechRecognition extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Check feature available
|
||||
* @return {Promise<boolean>}
|
||||
@@ -117,10 +118,11 @@ export class SpeechRecognition extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse',
|
||||
observable: true,
|
||||
|
||||
observable: true
|
||||
})
|
||||
startListening(options?: SpeechRecognitionListeningOptions): Observable<Array<string>> {
|
||||
startListening(
|
||||
options?: SpeechRecognitionListeningOptions
|
||||
): Observable<Array<string>> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -160,5 +162,4 @@ export class SpeechRecognition extends IonicNativePlugin {
|
||||
requestPermission(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user