mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
* add type defintions for correct md5 module (per npm) * Corrected md5 to CybozuLabs-md5 * added typings for md5 (npm version)
17 lines
539 B
TypeScript
17 lines
539 B
TypeScript
// Type definitions for md5 v2.1.0
|
|
// Project: https://github.com/pvorb/node-md5
|
|
// Definitions by: Bill Sourour <https://github.com/arcdev1>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
declare module 'md5' {
|
|
/**
|
|
* 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
|
|
*/
|
|
function main(message: string | Buffer): string;
|
|
export = main;
|
|
}
|