mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+7
-7
@@ -25,14 +25,14 @@ declare module 'bytes' {
|
||||
*/
|
||||
function bytes(value: string): number;
|
||||
|
||||
module bytes {
|
||||
namespace bytes {
|
||||
|
||||
/**
|
||||
* Format the given value in bytes into a string.
|
||||
*
|
||||
*
|
||||
* If the value is negative, take Math.abs(). If it is a float,
|
||||
* it is rounded.
|
||||
*
|
||||
*
|
||||
* @param {number} value
|
||||
* @param {BytesFormatOptions} [options]
|
||||
*/
|
||||
@@ -41,7 +41,7 @@ declare module 'bytes' {
|
||||
|
||||
/**
|
||||
* Just return the input number value.
|
||||
*
|
||||
*
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
*/
|
||||
@@ -49,9 +49,9 @@ declare module 'bytes' {
|
||||
|
||||
/**
|
||||
* Parse the string value into an integer in bytes.
|
||||
*
|
||||
*
|
||||
* If no unit is given, it is assumed the value is in bytes.
|
||||
*
|
||||
*
|
||||
* @param {string} value
|
||||
* @return {number}
|
||||
*/
|
||||
@@ -59,4 +59,4 @@ declare module 'bytes' {
|
||||
}
|
||||
|
||||
export = bytes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user