mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-04 16:04:45 +08:00
Merge pull request #1880 from jpmoodlerooms/node_crypto
Update crypto.Hmac.update and crypto.Hmac.digest methods to the correct signature
This commit is contained in:
Vendored
+2
-2
@@ -1021,8 +1021,8 @@ declare module "crypto" {
|
||||
digest(encoding?: string): string;
|
||||
}
|
||||
interface Hmac {
|
||||
update(data: any): void;
|
||||
digest(encoding?: string): void;
|
||||
update(data: any, input_encoding?: string): Hmac;
|
||||
digest(encoding?: string): string;
|
||||
}
|
||||
export function createCipher(algorithm: string, password: any): Cipher;
|
||||
export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
|
||||
|
||||
Reference in New Issue
Block a user