From 916bbaaf3e439f11ad73fa225c235a17a4269c24 Mon Sep 17 00:00:00 2001 From: bUBBLE Date: Wed, 24 Jun 2020 14:58:40 +0800 Subject: [PATCH] add fromUint8Array and toUint8Array (#45605) --- types/js-base64/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/js-base64/index.d.ts b/types/js-base64/index.d.ts index 95fa5ccd8c..8526f649cb 100644 --- a/types/js-base64/index.d.ts +++ b/types/js-base64/index.d.ts @@ -27,6 +27,10 @@ export namespace Base64 { function noConflict(): typeof Base64; function extendString(): void; + + function fromUint8Array(uint8Array: Uint8Array): string; + + function toUint8Array(s: string): Uint8Array; } // Helper to allow referencing Base64 from inside the global declaration without creating a self reference