mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* b2a: added base64url encode/decode function types * b2a: added base64url encode/decode function types (indent.fix)
33 lines
724 B
TypeScript
33 lines
724 B
TypeScript
// Type definitions for b2a 1.1
|
|
// Project: https://github.com/kaelzhang/b2a#readme
|
|
// Definitions by: PatPL <https://github.com/PatPL>
|
|
// Merlinio <https://github.com/Merlinio>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Converts base64 string back into original text
|
|
*/
|
|
declare function atob(base64: string): string;
|
|
|
|
/**
|
|
* Converts base64url string back into original text
|
|
*/
|
|
declare function atobu(base64: string): string;
|
|
|
|
/**
|
|
* Converts text into base64 string
|
|
*/
|
|
declare function btoa(text: string): string;
|
|
|
|
/**
|
|
* Converts text into base64url string
|
|
*/
|
|
declare function btoau(text: string): string;
|
|
|
|
export {
|
|
atob,
|
|
atobu,
|
|
btoa,
|
|
btoau
|
|
};
|