From e28099962b7b64963e5bf11487f2408c2ac67055 Mon Sep 17 00:00:00 2001 From: JD-Robbs Date: Mon, 9 Jan 2017 18:06:22 +0000 Subject: [PATCH] Extend typings --- sha1/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sha1/index.d.ts b/sha1/index.d.ts index 3fbc990b23..58d931b26e 100644 --- a/sha1/index.d.ts +++ b/sha1/index.d.ts @@ -11,5 +11,10 @@ * @param {(string | Buffer)} message - a string or buffer to hash * @returns {string} the resultant SHA1 hash of the given message */ -declare function main(message: string | Buffer): string; +declare function main(message: string | Buffer, options?: Sha1Options): string | Uint8Array; export = main; + +interface Sha1Options { + asBytes?: boolean; + asString?: boolean; +}