@types/bytes
Advanced tools
Comparing version 3.1.4 to 3.1.5
/** | ||
* 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5115