mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
add jquery.base64 support
This commit is contained in:
1 parent
46a1d97e62
commit
9240dabe54
3 files changed
+24
No files matched your search
@@ -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/))
|
||||
|
||||
@@ -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);
|
||||
Vendored
+15
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user