diff --git a/node/node.d.ts b/node/node.d.ts index 2fbd81e55..c1a552869 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -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 {