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
+11 -16
View File
@@ -1,10 +1,5 @@
import { Injectable } from '@angular/core';
import {
Cordova,
CordovaCheck,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Cordova, CordovaCheck, Plugin, IonicNativePlugin } from '@ionic-native/core';
export interface PrintOptions {
/**
@@ -79,12 +74,14 @@ export interface PrintOptions {
})
@Injectable()
export class Printer extends IonicNativePlugin {
/**
* Checks whether the device is capable of printing (uses `check()` internally)
* @returns {Promise<boolean>}
*/
isAvailable(): Promise<boolean> {
return this.check().then((res: any) => Promise.resolve(res.avail));
return this.check()
.then((res: any) => Promise.resolve(res.avail));
}
/**
@@ -94,9 +91,10 @@ export class Printer extends IonicNativePlugin {
@CordovaCheck()
check(): Promise<any> {
return new Promise<any>((resolve: Function) => {
Printer.getPlugin().check((avail: boolean, count: any) => {
resolve({ avail, count });
});
Printer.getPlugin()
.check((avail: boolean, count: any) => {
resolve({ avail, count });
});
});
}
@@ -105,9 +103,7 @@ export class Printer extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
pick(): Promise<any> {
return;
}
pick(): Promise<any> { return; }
/**
* Sends content to the printer.
@@ -119,7 +115,6 @@ export class Printer extends IonicNativePlugin {
successIndex: 2,
errorIndex: 4
})
print(content: string | HTMLElement, options?: PrintOptions): Promise<any> {
return;
}
print(content: string | HTMLElement, options?: PrintOptions): Promise<any> { return; }
}