Extend typings

This commit is contained in:
JD-Robbs
2017-01-09 18:06:22 +00:00
committed by GitHub
parent ff96652906
commit e28099962b
+6 -1
View File
@@ -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;
}