add jquery.base64 support

This commit is contained in:
mochizuki
2013-11-08 23:36:00 +09:00
parent 46a1d97e62
commit 9240dabe54
3 changed files with 24 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="jquery.base64.d.ts" />
var encoded = $.base64.encode("");
$.base64.decode(encoded);
var encodedUTF8 = $.base64.encode("", true);
$.base64.decode(encodedUTF8, true);
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for jQuery Plugin - base64 codec
// Project: https://github.com/yatt/jquery.base64/
// Definitions by: Shinya Mochizuki <https://github.com/enrapt-mochizuki/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface JQueryBase64Static {
encode(data: string, isUTF8?: boolean): string;
decode(data: string, isUTF8?: boolean): string;
}
interface JQueryStatic {
base64: JQueryBase64Static;
}