mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
11 lines
196 B
TypeScript
11 lines
196 B
TypeScript
// test that it works as a require
|
|
import BN = require('bn.js');
|
|
|
|
let bn = new BN(42);
|
|
bn = bn.add(bn);
|
|
bn.isZero();
|
|
bn.byteLength;
|
|
|
|
bn.toArrayLike(Buffer, 'le', 2);
|
|
const test = new BN(1, 'le');
|