Verify in crypto extends WritableStream

This commit is contained in:
Stéphane Le Dorze
2015-08-27 22:10:18 +02:00
parent e5de5c4daf
commit e63ff8f99a
+1 -1
View File
@@ -1094,7 +1094,7 @@ declare module "crypto" {
sign(private_key: string, output_format: string): string;
}
export function createVerify(algorith: string): Verify;
interface Verify {
interface Verify extends NodeJS.WritableStream {
update(data: any): void;
verify(object: string, signature: string, signature_format?: string): boolean;
}