From b9de5b37990211a34bb4dcd37a76333931ab8dfa Mon Sep 17 00:00:00 2001 From: Patman64 Date: Wed, 11 Nov 2015 22:40:28 -0500 Subject: [PATCH] Fix return type for bignum.jacobi --- bignum/bignum.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bignum/bignum.d.ts b/bignum/bignum.d.ts index 1ee538bb0..7f5253eaf 100644 --- a/bignum/bignum.d.ts +++ b/bignum/bignum.d.ts @@ -131,7 +131,7 @@ declare namespace BigNum { * - probably prime ('maybe') * - certainly composite (false) */ - probPrime(): boolean|string; + probPrime(): boolean | string; /** Return a new BigNum that is the 2^n multiple. Equivalent of the << operator. */ shiftLeft(n: BigNumCompatible): BigNum; @@ -148,7 +148,7 @@ declare namespace BigNum { * * Returns -1 or 1 as an int (NOT a BigNum). Throws an error on failure. */ - jacobi(n: BigNum): BigNum; + jacobi(n: BigNum): number; /** Return the number of bits used to represent the current BigNum. */ bitLength(): number; @@ -241,7 +241,7 @@ declare namespace BigNum { * - probably prime ('maybe') * - certainly composite (false) */ - export function probPrime(n: BigNumCompatible): boolean|string; + export function probPrime(n: BigNumCompatible): boolean | string; /** Return a new BigNum that is the 2^bits multiple. Equivalent of the << operator. */ export function shiftLeft(n: BigNumCompatible, bits: BigNumCompatible): BigNum; @@ -258,7 +258,7 @@ declare namespace BigNum { * * Returns -1 or 1 as an int (NOT a BigNum). Throws an error on failure. */ - export function jacobi(a: BigNumCompatible, n: BigNum): BigNum; + export function jacobi(a: BigNumCompatible, n: BigNum): number; /** Return the number of bits used to represent the current BigNum. */ export function bitLength(n: BigNumCompatible): number;