add fromUint8Array and toUint8Array (#45605)

This commit is contained in:
bUBBLE 2020-06-24 14:58:40 +08:00 committed by GitHub
parent ccd94f1448
commit 916bbaaf3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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