mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Testfiles added
This commit is contained in:
@@ -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([]));
|
||||
Vendored
+14
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user