mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
* Added declarations for 'base64-arraybuffer' * fix linting and header
5 lines
175 B
TypeScript
5 lines
175 B
TypeScript
import { encode, decode } from 'base64-arraybuffer';
|
|
|
|
encode(new Float32Array([1, 2, 3]).buffer); // $ExpectType string
|
|
decode('AACAPwAAAEAAAEBA'); // $ExpectType ArrayBuffer
|