diff --git a/types/md5/index.d.ts b/types/md5/index.d.ts index 2ea591fcfa..7cfed0ca35 100644 --- a/types/md5/index.d.ts +++ b/types/md5/index.d.ts @@ -1,15 +1,18 @@ // Type definitions for md5 v2.1.0 // Project: https://github.com/pvorb/node-md5 -// Definitions by: Bill Sourour +// Definitions by: Bill Sourour , Cameron Crothers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /** * js function for hashing messages with MD5 - * + * * @param {(string | Buffer)} message - a string or buffer to hash * @returns {string} the resultant MD5 hash of the given message */ -declare function main(message: string | Buffer): string; -export = main; +declare function md5(message: string | Buffer): string; + +declare namespace md5 {} + +export = md5; diff --git a/types/md5/tsconfig.json b/types/md5/tsconfig.json index 23854bdbe1..c3e5a225c7 100644 --- a/types/md5/tsconfig.json +++ b/types/md5/tsconfig.json @@ -19,4 +19,4 @@ "index.d.ts", "md5-tests.ts" ] -} \ No newline at end of file +}