Skip to content

Commit c594427

Browse files
committed
Merge pull request DefinitelyTyped#3844 from rmartone/master
defs for blueimp-md5
2 parents 765fc1b + 6f8c162 commit c594427

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

blueimp-md5/blueimp-md5-tests.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// <reference path='./blueimp-md5.d.ts' />
2+
3+
import blueimp = require('blueimp-md5');
4+
5+
function hash(): boolean {
6+
return blueimp.md5('hello world') === '5eb63bbbe01eeed093cb22bb8f5acdc3';
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--noImplicitAny --module commonjs

blueimp-md5/blueimp-md5.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Type definitions for blueimp-md5 v1.1.0
2+
// Project: https://github.com/blueimp/JavaScript-MD5
3+
// Definitions by: Ray Martone <https://github.com/rmartone>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
declare module 'blueimp-md5' {
6+
export function md5(value: string, key?: string, raw?: boolean): string;
7+
}

0 commit comments

Comments
 (0)