mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Verify in crypto extends WritableStream
This commit is contained in:
2
node/node-0.11.d.ts
vendored
2
node/node-0.11.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user