mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #15040 from mkohlmyr/master
Fix es6 import for blueimp-md5.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Vendored
+4
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user