Fix redeclare block-scoped Base64 (#11677)

Issue found by https://github.com/dankogai/js-base64/issues/38#issuecomment-250999729
This commit is contained in:
Denis
2016-10-03 22:38:56 +09:00
committed by Masahiro Wakame
parent 68351be490
commit 3a49556c30
+27 -24
View File
@@ -19,34 +19,37 @@ add methods:
- [ ] noConflict
*/
interface Base64 {
/**
* .encode
* @param {String} string
* @return {String}
*/
encode(base64: string): string;
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
/**
* .encodeURI
* @param {String} string
* @return {String}
*/
encodeURI(base64: string): string
/**
* .decode
* @param {String} string
* @return {String}
*/
decode(base64: string): string
/**
* .decode
* @param {String} string
* @return {String}
*/
decode(base64: string): string
/**
* Library version
*/
VERSION:string
/**
* Library version
*/
VERSION:string
}
}
declare module 'js-base64' {
const Base64: Base64
export = Base64
}