Add number[] as accepted key type to Hmac.create definition

pull/25/head
Sandro Lain 5 years ago committed by GitHub
parent 189bb9b037
commit 61214b4b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
index.d.ts vendored

@ -48,7 +48,7 @@ interface Hmac {
*
* @param secretKey The Secret Key
*/
create(secretKey: string): Hasher;
create(secretKey: string | number[]): Hasher;
/**
* Create a hash object and hash message using a secret key

Loading…
Cancel
Save