Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/bytes

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bytes - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

8

bytes/index.d.ts
/**
* Convert the given value in bytes into a string.
*/
declare function bytes(value: number, options?: bytes.BytesOptions): string;
declare function bytes(value: number, options?: bytes.BytesOptions): string | null;

@@ -9,3 +9,3 @@ /**

*/
declare function bytes(value: string): number;
declare function bytes(value: string): number | null;

@@ -29,3 +29,3 @@ declare namespace bytes {

*/
function format(value: number, options?: BytesOptions): string;
function format(value: number, options?: BytesOptions): string | null;

@@ -37,5 +37,5 @@ /**

*/
function parse(value: string | number): number;
function parse(value: string | number): number | null;
}
export = bytes;
{
"name": "@types/bytes",
"version": "3.1.4",
"version": "3.1.5",
"description": "TypeScript definitions for bytes",

@@ -33,4 +33,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bytes",

"dependencies": {},
"typesPublisherContentHash": "b8080a55863f65d2c5786c51b1a9dd4f012fcf84c8e82ed7edd825a205827355",
"typeScriptVersion": "4.5"
"peerDependencies": {},
"typesPublisherContentHash": "a4260e04c16b55913934fd17ae3e63120b04cc0d261f6595d30139067a4966c6",
"typeScriptVersion": "5.0"
}

@@ -14,3 +14,3 @@ # Installation

*/
declare function bytes(value: number, options?: bytes.BytesOptions): string;
declare function bytes(value: number, options?: bytes.BytesOptions): string | null;

@@ -20,3 +20,3 @@ /**

*/
declare function bytes(value: string): number;
declare function bytes(value: string): number | null;

@@ -40,3 +40,3 @@ declare namespace bytes {

*/
function format(value: number, options?: BytesOptions): string;
function format(value: number, options?: BytesOptions): string | null;

@@ -48,3 +48,3 @@ /**

*/
function parse(value: string | number): number;
function parse(value: string | number): number | null;
}

@@ -57,3 +57,3 @@

### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Last updated: Tue, 03 Dec 2024 08:37:26 GMT
* Dependencies: none

@@ -60,0 +60,0 @@

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