mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
refactor(lib): run prettier
This commit is contained in:
@@ -36,7 +36,7 @@ export class SecureStorageEchoObject {
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
get(key: string): Promise<string> {
|
||||
return;
|
||||
@@ -49,7 +49,7 @@ export class SecureStorageEchoObject {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
set(key: string, value: string): Promise<any> {
|
||||
return;
|
||||
@@ -61,7 +61,7 @@ export class SecureStorageEchoObject {
|
||||
* @returns {Promise<string>} returns a promise that resolves with the key that was removed
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
remove(key: string): Promise<string> {
|
||||
return;
|
||||
@@ -72,7 +72,7 @@ export class SecureStorageEchoObject {
|
||||
* @returns {Promise<string[]>} returns a promise that resolves with array of keys storage
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
keys(): Promise<string[]> {
|
||||
return;
|
||||
@@ -83,7 +83,7 @@ export class SecureStorageEchoObject {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@CordovaInstance({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
})
|
||||
clear(): Promise<any> {
|
||||
return;
|
||||
@@ -150,7 +150,7 @@ export class SecureStorageEchoObject {
|
||||
plugin: 'cordova-plugin-secure-storage-echo',
|
||||
pluginRef: 'cordova.plugins.SecureStorage',
|
||||
repo: 'https://github.com/mibrito707/cordova-plugin-secure-storage-echo',
|
||||
platforms: ['Android', 'Browser', 'iOS', 'Windows']
|
||||
platforms: ['Android', 'Browser', 'iOS', 'Windows'],
|
||||
})
|
||||
@Injectable()
|
||||
export class SecureStorageEcho extends IonicNativePlugin {
|
||||
@@ -162,12 +162,12 @@ export class SecureStorageEcho extends IonicNativePlugin {
|
||||
@CordovaCheck()
|
||||
create(store: string, options?: SecureStorageEchoOptions): Promise<SecureStorageEchoObject> {
|
||||
return getPromise<SecureStorageEchoObject>((res: Function, rej: Function) => {
|
||||
const instance = new (SecureStorageEcho.getPlugin())(
|
||||
() => res(new SecureStorageEchoObject(instance)),
|
||||
() => rej(new SecureStorageEchoObject(instance)),
|
||||
store,
|
||||
options
|
||||
);
|
||||
});
|
||||
const instance = new (SecureStorageEcho.getPlugin())(
|
||||
() => res(new SecureStorageEchoObject(instance)),
|
||||
() => rej(new SecureStorageEchoObject(instance)),
|
||||
store,
|
||||
options
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user