Fix bug: crypto.Decipher#update() returns string, not void

This commit is contained in:
John Jeffery
2014-10-05 09:27:32 +10:00
parent 4598e7d76b
commit 0eeb638c89
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1083,7 +1083,7 @@ declare module "crypto" {
export function createDecipher(algorithm: string, password: any): Decipher;
export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
interface Decipher {
update(data: any, input_encoding?: string, output_encoding?: string): void;
update(data: any, input_encoding?: string, output_encoding?: string): string;
final(output_encoding?: string): string;
setAutoPadding(auto_padding: boolean): void;
}