From 8702f6502b6fddb13ff3a8f220cb1602b56489d5 Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Wed, 7 Mar 2018 19:43:50 +0800 Subject: [PATCH] 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. --- 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. */