Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
@@ -1,10 +1,5 @@
import { Injectable } from '@angular/core';
import {
Cordova,
CordovaProperty,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
declare const navigator: any;
@@ -38,10 +33,7 @@ export interface MediaFile {
* @param {Function} successCallback
* @param {Function} errorCallback
*/
getFormatData(
successCallback: (data: MediaFileData) => any,
errorCallback?: (err: any) => any
): void;
getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): void;
}
export interface MediaFileData {
@@ -109,7 +101,7 @@ export interface ConfigurationData {
/**
* The ASCII-encoded lowercase string representing the media type.
*/
type: string;
type: string;
/**
* The height of the image or video in pixels. The value is zero for sound clips.
*/
@@ -163,19 +155,22 @@ export class MediaCapture extends IonicNativePlugin {
* The recording image sizes and formats supported by the device.
* @returns {ConfigurationData[]}
*/
@CordovaProperty supportedImageModes: ConfigurationData[];
@CordovaProperty
supportedImageModes: ConfigurationData[];
/**
* The audio recording formats supported by the device.
* @returns {ConfigurationData[]}
*/
@CordovaProperty supportedAudioModes: ConfigurationData[];
@CordovaProperty
supportedAudioModes: ConfigurationData[];
/**
* The recording video resolutions and formats supported by the device.
* @returns {ConfigurationData[]}
*/
@CordovaProperty supportedVideoModes: ConfigurationData[];
@CordovaProperty
supportedVideoModes: ConfigurationData[];
/**
* Start the audio recorder application and return information about captured audio clip files.
@@ -185,9 +180,7 @@ export class MediaCapture extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
captureAudio(
options?: CaptureAudioOptions
): Promise<MediaFile[] | CaptureError> {
captureAudio(options?: CaptureAudioOptions): Promise<MediaFile[] | CaptureError> {
return;
}
@@ -199,9 +192,7 @@ export class MediaCapture extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
captureImage(
options?: CaptureImageOptions
): Promise<MediaFile[] | CaptureError> {
captureImage(options?: CaptureImageOptions): Promise<MediaFile[] | CaptureError> {
return;
}
@@ -213,9 +204,7 @@ export class MediaCapture extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
captureVideo(
options?: CaptureVideoOptions
): Promise<MediaFile[] | CaptureError> {
captureVideo(options?: CaptureVideoOptions): Promise<MediaFile[] | CaptureError> {
return;
}
@@ -242,4 +231,5 @@ export class MediaCapture extends IonicNativePlugin {
onPendingCaptureError(): Observable<CaptureError> {
return;
}
}