replace internal module to namespace

This commit is contained in:
vvakame
2016-03-17 02:18:10 +09:00
parent 2f47c75835
commit 14fe4313f4
1139 changed files with 179639 additions and 179639 deletions
+7 -7
View File
@@ -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;
}
}