docs(file-encryption): typo

This commit is contained in:
Daniel 2018-04-08 21:30:20 +02:00
parent 624f94f9f6
commit d598bf3416

View File

@ -1,5 +1,5 @@
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name File Encryption
@ -30,23 +30,25 @@ import { Injectable } from '@angular/core';
})
@Injectable()
export class FileEncryption extends IonicNativePlugin {
/**
* Enrcypt a file
* @param file {string} A string representing a local URI
* @param key {string} A key for the crypto operations
* Encrypt a file
* @param {string} file A string representing a local URI
* @param {string} key A key for the crypto operations
* @return {Promise<any>} Returns a promise that resolves when something happens
*/
@Cordova()
encrypt(file: string, key: string): Promise<any> { return; }
encrypt(file: string, key: string): Promise<any> {
return;
}
/**
* Decrypt a file
* @param file {string} A string representing a local URI
* @param key {string} A key for the crypto operations
* @param {string} file A string representing a local URI
* @param {string} key A key for the crypto operations
* @return {Promise<any>} Returns a promise that resolves when something happens
*/
@Cordova()
decrypt(file: string, key: string): Promise<any> { return; }
decrypt(file: string, key: string): Promise<any> {
return;
}
}