Skip to content

Commit 0134b62

Browse files
authored
Merge pull request #232 from trgsv/master
Minor improvements in bsv types
2 parents 7dcdaba + 8ef4282 commit 0134b62

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

patches/bsv/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,9 @@ declare module 'bsv' {
661661
endian?: Endianness,
662662
);
663663

664-
One: BN;
664+
static Zero: BN;
665+
static One: BN;
666+
static Minus1: BN;
665667

666668
clone(): BN;
667669
toString(base?: number | 'hex', length?: number): string;
@@ -676,6 +678,7 @@ declare module 'bsv' {
676678
isEven(): boolean;
677679
isOdd(): boolean;
678680
isZero(): boolean;
681+
isBN(): boolean;
679682
cmp(b: any): number;
680683
lt(b: any): boolean;
681684
lte(b: any): boolean;
@@ -719,7 +722,6 @@ declare module 'bsv' {
719722
toNumber(): number;
720723
static fromBuffer(buf: Buffer, opts?: IOpts): BN;
721724
static fromNumber(n: number): BN;
722-
//toBuffer(opts?: IOpts): Buffer;
723725
static fromHex(hex: string, opts?: IOpts): BN;
724726
static fromString(hex: string, base?: number): BN;
725727
}

0 commit comments

Comments
 (0)