diff --git a/node/node.d.ts b/node/node.d.ts index 45dc16a0f4..248b0ad535 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1057,7 +1057,7 @@ declare module "crypto" { update(data: any, input_encoding?: string): Hmac; digest(encoding: 'buffer'): Buffer; digest(encoding: string): any; - digest(): any; + digest(): Buffer; } export function createCipher(algorithm: string, password: any): Cipher; export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;