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