Testfiles added

This commit is contained in:
tigerxy
2015-09-20 17:54:14 +02:00
parent 41a6468fbf
commit 6e996ab243
4 changed files with 92 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
/// <reference path="md5.d.ts" />
md5('Message to hash');
md5('');
md5('中文');
md5([]);
md5(new Uint8Array([]));
$.md5('message');
$.md5('Message to hash');
$.md5('');
$.md5('中文');
$.md5([]);
$.md5(new Uint8Array([]));
'message'.md5('Message to hash');
'message'.md5('');
'message'.md5('中文');
'message'.md5([]);
'message'.md5(new Uint8Array([]));
+14
View File
@@ -3,16 +3,30 @@
// Definitions by: Roland Greim <https://github.com/tigerxy>
// Definitions: https://github.com/borisyankov/DefinitelyTyped/
/// <reference path="../jquery/jquery.d.ts"/>
interface JQuery {
md5(value: string): string;
md5(value: Array<any>): string;
md5(value: Uint8Array): string;
}
interface JQueryStatic {
md5(value: string): string;
md5(value: Array<any>): string;
md5(value: Uint8Array): string;
}
interface md5 {
(value: string): string;
(value: Array<any>): string;
(value: Uint8Array): string;
}
interface String {
md5(value: string): string;
md5(value: Array<any>): string;
md5(value: Uint8Array): string;
}
declare var md5: md5;