From b07a83f244df88ac568875e86f6bbdceb4c1f604 Mon Sep 17 00:00:00 2001 From: Jonathan Pirnay Date: Mon, 9 Jun 2014 22:39:35 +0200 Subject: [PATCH] Changed HMAC and Hash params to `any`, as Buffers are also allowed / returned. --- node/node.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;