From 8f1c02df74e77390b6d9ef70ce218f0efda6abd2 Mon Sep 17 00:00:00 2001 From: JD-Robbs Date: Mon, 9 Jan 2017 17:49:41 +0000 Subject: [PATCH] Adds SHA1 definition --- sha1/index.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sha1/index.d.ts diff --git a/sha1/index.d.ts b/sha1/index.d.ts new file mode 100644 index 0000000000..3fbc990b23 --- /dev/null +++ b/sha1/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for sha1 v1.1.1 +// Project: https://github.com/pvorb/node-sha1 +// Definitions adapted from md5 definitions by: Bill Sourour +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +/** + * js function for hashing messages with SHA1 + * + * @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; +export = main;