mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Merge pull request #696 from s093294/master
Fixed return type on Node, Hash Interface, update function.
This commit is contained in:
Vendored
+1
-1
@@ -929,7 +929,7 @@ declare module "crypto" {
|
||||
export function createHash(algorithm: string): Hash;
|
||||
export function createHmac(algorithm: string, key: string): Hmac;
|
||||
interface Hash {
|
||||
update(data: any, input_encoding?: string): void;
|
||||
update(data: any, input_encoding?: string): Hash;
|
||||
digest(encoding?: string): string;
|
||||
}
|
||||
interface Hmac {
|
||||
|
||||
Reference in New Issue
Block a user