Fix angularjs/angular; 'export declare'/'declare export'

This commit is contained in:
Ryan Cavanaugh
2016-04-25 13:02:25 -07:00
parent 31dfe55013
commit 541e24b685
293 changed files with 2013 additions and 2013 deletions
+8 -8
View File
@@ -9,14 +9,14 @@
* @param rounds Number of rounds to process the data for (default - 10)
* @return Generated salt
*/
declare export function genSaltSync(rounds?: number): string;
export declare function genSaltSync(rounds?: number): string;
/**
* Generate a salt asynchronously
* @param rounds Number of rounds to process the data for (default - 10)
* @param callback Callback with error and resulting salt, to be fired once the salt has been generated
*/
declare export function genSalt(rounds: number, callback: (error: Error, result: string) => void): void;
export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void;
/**
* Generate a hash synchronously
@@ -24,7 +24,7 @@ declare export function genSalt(rounds: number, callback: (error: Error, result:
* @param salt Salt to be used in encryption (default - new salt generated with 10 rounds)
* @return Generated hash
*/
declare export function hashSync(data: string, salt?: string): string;
export declare function hashSync(data: string, salt?: string): string;
/**
* Generate a hash asynchronously
@@ -32,7 +32,7 @@ declare export function hashSync(data: string, salt?: string): string;
* @param salt Salt to be used in encryption
* @param callback Callback with error and hashed result, to be fired once the data has been encrypted
*/
declare export function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void;
export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void;
/**
* Generate a hash asynchronously
@@ -41,7 +41,7 @@ declare export function hash(data: string, salt: string, callback: (error: Error
* @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress
* @param callback Callback with error and hashed result, to be fired once the data has been encrypted
*/
declare export function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void;
export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void;
/**
* Compares data with a hash synchronously
@@ -49,7 +49,7 @@ declare export function hash(data: string, salt: string, progressCallback: () =>
* @param hash Hash to be compared to
* @return true if matching, false otherwise
*/
declare export function compareSync(data: string, hash: string): boolean;
export declare function compareSync(data: string, hash: string): boolean;
/**
* Compares data with a hash asynchronously
@@ -57,11 +57,11 @@ declare export function compareSync(data: string, hash: string): boolean;
* @param hash Hash to be compared to
* @param callback Callback with error and match result, to be fired once the data has been compared
*/
declare export function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void;
export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void;
/**
* Get number of rounds used for hash
* @param hash Hash from which the number of rounds used should be extracted
* @return number of rounds used to encrypt a given hash
*/
declare export function getRounds(hash: string): number;
export declare function getRounds(hash: string): number;