mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
Changed HMAC and Hash params to any, as Buffers are also allowed / returned.
This commit is contained in:
Vendored
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user