diff --git a/node/node.d.ts b/node/node.d.ts index f3a778e01..bd4ef8879 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1040,14 +1040,14 @@ declare module "crypto" { export interface Credentials { context?: any; } export function createCredentials(details: CredentialDetails): Credentials; export function createHash(algorithm: string): Hash; - export function createHmac(algorithm: string, key: string): Hmac; + export function createHmac(algorithm: string, key: any): Hmac; interface Hash { update(data: any, input_encoding?: string): Hash; - digest(encoding?: string): string; + digest(encoding?: string): any; } interface Hmac { update(data: any, input_encoding?: string): Hmac; - digest(encoding?: string): string; + digest(encoding?: string): any; } export function createCipher(algorithm: string, password: any): Cipher; export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;