mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
12 lines
179 B
TypeScript
12 lines
179 B
TypeScript
|
|
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');
|