mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refactor(lib): run prettier
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
|
||||
/**
|
||||
* @name Keychain
|
||||
* @description
|
||||
@@ -32,11 +31,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
plugin: 'cordova-plugin-ios-keychain',
|
||||
pluginRef: 'window.Keychain',
|
||||
repo: 'https://github.com/ionic-team/cordova-plugin-ios-keychain',
|
||||
platforms: ['iOS']
|
||||
platforms: ['iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Keychain extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Retrieves a value for a key
|
||||
*
|
||||
@@ -44,7 +42,7 @@ export class Keychain extends IonicNativePlugin {
|
||||
* @param {string} [touchIDMessage] the message to show underneath the TouchID prompt (if any)
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
get(key: string, touchIDMessage?: string): Promise<any> {
|
||||
return;
|
||||
@@ -58,7 +56,7 @@ export class Keychain extends IonicNativePlugin {
|
||||
* @param {boolean} [useTouchID] whether to store the value with security such that TouchID will be needed to grab it
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise<any> {
|
||||
return;
|
||||
@@ -71,7 +69,7 @@ export class Keychain extends IonicNativePlugin {
|
||||
* @param {string} touchIDMessage the message to show underneath the TouchID prompt (if any)
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
getJson(key: string, touchIDMessage?: string): Promise<any> {
|
||||
return;
|
||||
@@ -85,7 +83,7 @@ export class Keychain extends IonicNativePlugin {
|
||||
* @param {boolean} [useTouchId] Wether to store the value with security such that TouchID will be needed to grab it
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
setJson(key: string, obj: any, useTouchId?: boolean): Promise<any> {
|
||||
return;
|
||||
@@ -97,10 +95,9 @@ export class Keychain extends IonicNativePlugin {
|
||||
* @param {string} key the key to remove
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
remove(key: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user