mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Update JSBase64 namespace (#11816)
Issues reported: https://github.com/dankogai/js-base64/issues/38#issuecomment-251963300
This commit is contained in:
Vendored
+32
-33
@@ -19,37 +19,36 @@ add methods:
|
||||
- [ ] noConflict
|
||||
*/
|
||||
|
||||
declare namespace Base64 {
|
||||
const Base64: Base64Static
|
||||
interface Base64Static {
|
||||
/**
|
||||
* .encode
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
encode(base64: string): string;
|
||||
|
||||
/**
|
||||
* .encodeURI
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
encodeURI(base64: string): string
|
||||
|
||||
/**
|
||||
* .decode
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
decode(base64: string): string
|
||||
|
||||
/**
|
||||
* Library version
|
||||
*/
|
||||
VERSION:string
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'js-base64' {
|
||||
export = Base64
|
||||
}
|
||||
namespace JSBase64 {
|
||||
const Base64: Base64Static
|
||||
interface Base64Static {
|
||||
/**
|
||||
* .encode
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
encode(base64: string): string;
|
||||
|
||||
/**
|
||||
* .encodeURI
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
encodeURI(base64: string): string
|
||||
|
||||
/**
|
||||
* .decode
|
||||
* @param {String} string
|
||||
* @return {String}
|
||||
*/
|
||||
decode(base64: string): string
|
||||
|
||||
/**
|
||||
* Library version
|
||||
*/
|
||||
VERSION:string
|
||||
}
|
||||
}
|
||||
export = JSBase64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user