From 1c00d97268b58b01b47fa33ac085eaeec386209a Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Thu, 2 Aug 2018 19:45:40 +0800 Subject: [PATCH] Adds arrayBuffer and buffer definitions. (#16) This is based entirely on the examples in the readme. If the examples in the readme are incorrect then this definition is also incorrect. --- index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.d.ts b/index.d.ts index cedaca1..6b7d178 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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. */