From a0669ef32d1d414605d935e853dbd7aa565a22f1 Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 6 Oct 2016 20:04:13 -0400 Subject: [PATCH] Update JSBase64 namespace (#11816) Issues reported: https://github.com/dankogai/js-base64/issues/38#issuecomment-251963300 --- js-base64/js-base64.d.ts | 65 ++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 33 deletions(-) diff --git a/js-base64/js-base64.d.ts b/js-base64/js-base64.d.ts index a26d24ea54..bd195e3885 100644 --- a/js-base64/js-base64.d.ts +++ b/js-base64/js-base64.d.ts @@ -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 -} \ No newline at end of file + 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 +}