mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
add jquery.base64 support
This commit is contained in:
@@ -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