blueimp-md5.d.ts
file in this repo and had problems.xxxx/xxxx.d.ts
.hashed = require("blueimg-md5").md5("my string")
. // Use the following version if you installed the package with npm:
var md5 = require("blueimp-md5"),
query = url.parse(req.url).query;
// Calculate and print the MD5 hash of the url query:
res.end(md5(query));
The definition should be
declare module 'blueimp-md5' {
function md5(value: string, key?: string, raw?: boolean): string;
export = md5;
}
rather than
declare module 'blueimp-md5' {
export function md5(value: string, key?: string, raw?: boolean): string;
}
I have the same problem. ;| Definition is still the same.
me too.
please send a pull request. I'll review it.