Merge pull request #3844 from rmartone/master

defs for blueimp-md5
This commit is contained in:
Masahiro Wakame
2015-03-12 01:07:50 +09:00
3 changed files with 15 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference path='./blueimp-md5.d.ts' />
import blueimp = require('blueimp-md5');
function hash(): boolean {
return blueimp.md5('hello world') === '5eb63bbbe01eeed093cb22bb8f5acdc3';
}
@@ -0,0 +1 @@
--noImplicitAny --module commonjs
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for blueimp-md5 v1.1.0
// Project: https://github.com/blueimp/JavaScript-MD5
// Definitions by: Ray Martone <https://github.com/rmartone>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'blueimp-md5' {
export function md5(value: string, key?: string, raw?: boolean): string;
}