mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Extend typings
This commit is contained in:
Vendored
+6
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user