Socket
Socket
Sign inDemoInstall

@types/big.js

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/big.js - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

56

big.js/index.d.ts

@@ -318,46 +318,20 @@ // Type definitions for big.js 6.0

// We want the exported symbol 'Big' to represent two things:
// - The Big interface, when used in a type context.
// - The BigConstructor instance, when used in a value context.
export const Big: BigConstructor;
// Helpers to allow referencing Big and BigConstructor from inside the global declaration without creating a self reference
export type Big_ = Big;
export type BigConstructor_ = BigConstructor;
export type BigSource_ = BigSource;
// The default export is the same as type/value combo symbol 'Big'.
export default Big;
declare global {
namespace BigJs {
type Big = Big_;
type BigConstructor = BigConstructor_;
type BigSource = BigSource_;
const enum Comparison {
GT = 1,
EQ = 0,
LT = -1,
}
const enum RoundingMode {
/**
* Rounds towards zero.
* I.e. truncate, no rounding.
*/
RoundDown = 0,
/**
* Rounds towards nearest neighbour.
* If equidistant, rounds away from zero.
*/
RoundHalfUp = 1,
/**
* Rounds towards nearest neighbour.
* If equidistant, rounds towards even neighbour.
*/
RoundHalfEven = 2,
/**
* Rounds away from zero.
*/
RoundUp = 3,
}
}
const Big: BigJs.BigConstructor;
}
// If you pull in big.js via a <script> tag, the global symbol 'Big' is automatically defined.
// To let TypeScript know that, add this to your project's global types file, e.g. "types.d.ts":
//
// import BigJs from 'big.js';
// declare global {
// const Big = BigJs;
// type Big = BigJs;
// }
//
// There is a way to have TypeScript know to do this automatically (using "export as namespace"),
// but I couldn't get it working correctly.
{
"name": "@types/big.js",
"version": "6.0.1",
"version": "6.0.2",
"description": "TypeScript definitions for big.js",

@@ -27,4 +27,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "2b1774df441c296690f28b1b3d1b9f352e2eb7aca5c93d92d385f6ba16886965",
"typesPublisherContentHash": "0c2982f44d250816d2bccc178060b2cdf2fe7878ef047d0ca5f4054e5f062204",
"typeScriptVersion": "3.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 15 Dec 2020 17:30:37 GMT
* Last updated: Tue, 05 Jan 2021 04:42:09 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc