Adds arrayBuffer and buffer definitions.

This is based entirely on the examples in the readme.  If the examples in the readme are incorrect then this definition is also incorrect.
pull/16/head
Micah Zoltu 7 years ago committed by GitHub
parent fb7e6403d9
commit 8702f6502b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
index.d.ts vendored

@ -42,6 +42,20 @@ interface Hash {
*/
(message: Message): string;
/**
* Hash and return ArrayBuffer.
*
* @param message The message you want to hash.
*/
arrayBuffer(message: Message): ArrayBuffer;
/**
* Hash and return ArrayBuffer.
*
* @param message The message you want to hash.
*/
buffer(message: Message): ArrayBuffer;
/**
* Create a hash object.
*/

Loading…
Cancel
Save