mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
13 lines
216 B
TypeScript
13 lines
216 B
TypeScript
/// <reference path="./bs58.d.ts" />
|
|
|
|
import * as bs58 from 'bs58';
|
|
|
|
{
|
|
let encoded: string;
|
|
|
|
encoded = bs58.encode([255]);
|
|
encoded = bs58.encode({0: 255, length: 1});
|
|
}
|
|
|
|
let decoded: number[] = bs58.decode('5Q');
|