mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
14 lines
221 B
TypeScript
14 lines
221 B
TypeScript
|
|
import * as basex from 'base-x';
|
|
|
|
let bs16 = basex('0123456789ABCDEF');
|
|
|
|
{
|
|
let encoded: string;
|
|
|
|
encoded = bs16.encode([255]);
|
|
encoded = bs16.encode({0: 255, length: 1});
|
|
}
|
|
|
|
let decoded: number[] = bs16.decode('FF');
|