diff --git a/README.md b/README.md index 3f071bad1..b2e60d65a 100755 --- a/README.md +++ b/README.md @@ -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/)) diff --git a/jquery.base64/jquery.base64-tests.ts b/jquery.base64/jquery.base64-tests.ts new file mode 100644 index 000000000..5f6b6eaa6 --- /dev/null +++ b/jquery.base64/jquery.base64-tests.ts @@ -0,0 +1,8 @@ +/// +/// + +var encoded = $.base64.encode(""); +$.base64.decode(encoded); + +var encodedUTF8 = $.base64.encode("", true); +$.base64.decode(encodedUTF8, true); diff --git a/jquery.base64/jquery.base64.d.ts b/jquery.base64/jquery.base64.d.ts new file mode 100644 index 000000000..9af24ed01 --- /dev/null +++ b/jquery.base64/jquery.base64.d.ts @@ -0,0 +1,15 @@ +// Type definitions for jQuery Plugin - base64 codec +// Project: https://github.com/yatt/jquery.base64/ +// Definitions by: Shinya Mochizuki +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +interface JQueryBase64Static { + encode(data: string, isUTF8?: boolean): string; + decode(data: string, isUTF8?: boolean): string; +} + +interface JQueryStatic { + base64: JQueryBase64Static; +}