diff --git a/blueimp-md5/blueimp-md5-tests.ts b/blueimp-md5/blueimp-md5-tests.ts index 18edc69b57..0b59ae2f24 100644 --- a/blueimp-md5/blueimp-md5-tests.ts +++ b/blueimp-md5/blueimp-md5-tests.ts @@ -1,6 +1,5 @@ +import md5 = require("blueimp-md5"); -import blueimp = require('blueimp-md5'); - -function hash(): boolean { - return blueimp.md5('hello world') === '5eb63bbbe01eeed093cb22bb8f5acdc3'; +function hash1(): string { + return md5('hello world'); } diff --git a/blueimp-md5/index.d.ts b/blueimp-md5/index.d.ts index b51f554e32..881d5c7afe 100644 --- a/blueimp-md5/index.d.ts +++ b/blueimp-md5/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for blueimp-md5 v1.1.0 +// Type definitions for blueimp-md5 v2.7.0 // Project: https://github.com/blueimp/JavaScript-MD5 -// Definitions by: Ray Martone +// Definitions by: Ray Martone , Mikael Kohlmyr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export declare function md5(value: string, key?: string, raw?: boolean): string; +declare function md5(value: string, key?: string, raw?: boolean): string; +export = md5;