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

2
node/node-0.11.d.ts vendored
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;
}