Files
DefinitelyTyped/base64-js/base64-js-tests.ts
2016-10-20 13:43:06 -07:00

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));