Skip to content

Commit

Permalink
Adds arrayBuffer and buffer definitions.
Browse files Browse the repository at this point in the history
This is based entirely on the examples in the readme.  If the examples in the readme are incorrect then this definition is also incorrect.
  • Loading branch information
MicahZoltu committed Mar 7, 2018
1 parent fb7e640 commit 8702f65
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 8702f65

Please sign in to comment.