Skip to content

Commit

Permalink
Adds arrayBuffer and buffer definitions. (#16)
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 authored and emn178 committed Aug 2, 2018
1 parent fb7e640 commit 1c00d97
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 1c00d97

Please sign in to comment.