mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
6 lines
207 B
TypeScript
6 lines
207 B
TypeScript
import * as base64js from "base64-js";
|
|
|
|
const length: number = base64js.byteLength("");
|
|
const bytes: Uint8Array = base64js.toByteArray("");
|
|
const decoded: string = base64js.fromByteArray(new Uint8Array(0));
|