defs for blueimp-md5

This commit is contained in:
ray
2015-03-11 11:51:52 -04:00
parent 6d5b5f6817
commit 6f8c162bf5
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;
}