Merge pull request #15040 from mkohlmyr/master

Fix es6 import for blueimp-md5.
This commit is contained in:
Paul van Brenk
2017-03-23 13:40:36 -07:00
committed by GitHub
2 changed files with 7 additions and 7 deletions
+3 -4
View File
@@ -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');
}
+4 -3
View File
@@ -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 <https://github.com/rmartone>
// Definitions by: Ray Martone <https://github.com/rmartone>, Mikael Kohlmyr <https://github.com/mkohlmyr>
// 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;