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
+1
View File
@@ -135,6 +135,7 @@ List of Definitions
* [jQuery.Transit](http://ricostacruz.com/jquery.transit/) (by [MrBigDog2U](https://github.com/MrBigDog2U))
* [jQuery.Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) (by [Boris Yankov](https://github.com/borisyankov))
* [jQuery.Watermark](http://jquery-watermark.googlecode.com) (by [Anwar Javed](https://github.com/anwarjaved))
* [jQuery.base64](https://github.com/yatt/jquery.base64) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
* [jScrollPane](http://jscrollpane.kelvinluck.com) (by [Dániel Tar](https://github.com/qcz))
* [JSDeferred](http://cho45.stfuawsc.com/jsdeferred/) (by [Daisuke Mino](https://github.com/minodisk))
* [JSONEditorOnline](https://github.com/josdejong/jsoneditoronline) (by [Vincent Bortone](https://github.com/vbortone/))
+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;
}