refactor(lib): run prettier

This commit is contained in:
Daniel Sogl
2020-05-16 14:40:49 +02:00
parent f5133c691d
commit 511a02d50b
326 changed files with 3079 additions and 4092 deletions
@@ -1,7 +1,6 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name In App Purchase
* @description
@@ -58,18 +57,17 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
plugin: 'cordova-plugin-inapppurchase',
pluginRef: 'inAppPurchase',
repo: 'https://github.com/AlexDisler/cordova-plugin-inapppurchase',
platforms: ['Android', 'iOS']
platforms: ['Android', 'iOS'],
})
@Injectable()
export class InAppPurchase extends IonicNativePlugin {
/**
* Retrieves a list of full product data from Apple/Google. This method must be called before making purchases.
* @param {array<string>} productId an array of product ids.
* @returns {Promise<any>} Returns a Promise that resolves with an array of objects.
*/
@Cordova({
otherPromise: true
otherPromise: true,
})
getProducts(productId: string[]): Promise<any> {
return;
@@ -81,9 +79,9 @@ export class InAppPurchase extends IonicNativePlugin {
* @returns {Promise<{transactionId: string, receipt: string, signature: string, productType: string}>} Returns a Promise that resolves with the transaction details.
*/
@Cordova({
otherPromise: true
otherPromise: true,
})
buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> {
buy(productId: string): Promise<{ transactionId: string; receipt: string; signature: string; productType: string }> {
return;
}
@@ -93,9 +91,11 @@ export class InAppPurchase extends IonicNativePlugin {
* @returns {Promise<{transactionId: string, receipt: string, signature: string, productType: string}>} Returns a Promise that resolves with the transaction details.
*/
@Cordova({
otherPromise: true
otherPromise: true,
})
subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> {
subscribe(
productId: string
): Promise<{ transactionId: string; receipt: string; signature: string; productType: string }> {
return;
}
@@ -107,7 +107,7 @@ export class InAppPurchase extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova({
otherPromise: true
otherPromise: true,
})
consume(productType: string, receipt: string, signature: string): Promise<any> {
return;
@@ -118,7 +118,7 @@ export class InAppPurchase extends IonicNativePlugin {
* @returns {Promise<any>} Returns a promise with an array of purchases.
*/
@Cordova({
otherPromise: true
otherPromise: true,
})
restorePurchases(): Promise<any> {
return;
@@ -130,10 +130,9 @@ export class InAppPurchase extends IonicNativePlugin {
*/
@Cordova({
otherPromise: true,
platforms: ['iOS']
platforms: ['iOS'],
})
getReceipt(): Promise<string> {
return;
}
}