Skip to content

Commit

Permalink
Merge pull request #145 from ryanrhee/patch-1
Browse files Browse the repository at this point in the history
[typescript] Add pad, precision, & roundingMethod
  • Loading branch information
avoidwork committed Jan 19, 2022
2 parents b6628f8 + baad432 commit 54ed32f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions filesize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,22 @@ declare namespace Filesize {
* Output of function (array, exponent, object, or string), default is string
*/
output?: "array" | "exponent" | "object" | "string";
/**
* Decimal place end padding, default is false
*/
pad?: boolean;
/**
* Sets precision of numerical output, default is 0
*/
precision?: number;
/**
* Decimal place, default is 2
*/
round?: number;
/**
*
*/
roundingMethod?: "round" | "floor" | "ceil";
/**
* Decimal separator character, default is `.`
*/
Expand Down

0 comments on commit 54ed32f

Please sign in to comment.