diff --git a/blueimp-md5/blueimp-md5-tests.ts b/blueimp-md5/blueimp-md5-tests.ts new file mode 100644 index 0000000000..5e38083097 --- /dev/null +++ b/blueimp-md5/blueimp-md5-tests.ts @@ -0,0 +1,7 @@ +/// + +import blueimp = require('blueimp-md5'); + +function hash(): boolean { + return blueimp.md5('hello world') === '5eb63bbbe01eeed093cb22bb8f5acdc3'; +} diff --git a/blueimp-md5/blueimp-md5-tests.ts.tscparams b/blueimp-md5/blueimp-md5-tests.ts.tscparams new file mode 100644 index 0000000000..85542607d1 --- /dev/null +++ b/blueimp-md5/blueimp-md5-tests.ts.tscparams @@ -0,0 +1 @@ +--noImplicitAny --module commonjs diff --git a/blueimp-md5/blueimp-md5.d.ts b/blueimp-md5/blueimp-md5.d.ts new file mode 100644 index 0000000000..37c3f3c002 --- /dev/null +++ b/blueimp-md5/blueimp-md5.d.ts @@ -0,0 +1,7 @@ +// Type definitions for blueimp-md5 v1.1.0 +// Project: https://github.com/blueimp/JavaScript-MD5 +// Definitions by: Ray Martone +// Definitions: https://github.com/borisyankov/DefinitelyTyped +declare module 'blueimp-md5' { + export function md5(value: string, key?: string, raw?: boolean): string; +}