mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3614 from Deathspike/master
Update big-integer with bitwise operations
This commit is contained in:
Vendored
+25
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for BigInteger.js
|
||||
// Project: https://github.com/peterolson/BigInteger.js
|
||||
// Definitions by: Ingo Bürk <https://github.com/Airblader>
|
||||
// Definitions by: Ingo Bürk <https://github.com/Airblader>, Roel van Uden <https://github.com/Deathspike>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface BigInteger {
|
||||
@@ -167,6 +167,30 @@ interface BigInteger {
|
||||
/** Checks if two numbers are not equal. */
|
||||
notEquals( number: string ): boolean;
|
||||
|
||||
/** Performs the bitwise AND operation. */
|
||||
and( number: number ): BigInteger;
|
||||
/** Performs the bitwise AND operation. */
|
||||
and( number: BigInteger ): BigInteger;
|
||||
/** Performs the bitwise AND operation. */
|
||||
and( number: string ): BigInteger;
|
||||
|
||||
/** Performs the bitwise NOT operation. */
|
||||
not(): BigInteger;
|
||||
|
||||
/** Performs the bitwise OR operation. */
|
||||
or( number: number ): BigInteger;
|
||||
/** Performs the bitwise OR operation. */
|
||||
or( number: BigInteger ): BigInteger;
|
||||
/** Performs the bitwise OR operation. */
|
||||
or( number: string ): BigInteger;
|
||||
|
||||
/** Performs the bitwise XOR operation. */
|
||||
xor( number: number ): BigInteger;
|
||||
/** Performs the bitwise XOR operation. */
|
||||
xor( number: BigInteger ): BigInteger;
|
||||
/** Performs the bitwise XOR operation. */
|
||||
xor( number: string ): BigInteger;
|
||||
|
||||
/** Converts a bigInt into a native Javascript number. Loses precision for numbers outside the range. */
|
||||
toJSNumber(): number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user