summaryrefslogtreecommitdiff
path: root/src/utils/simpleFormat.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-27 22:52:54 -0700
committer8cy <[email protected]>2020-06-27 22:52:54 -0700
commit80951013e391aab140800e4f386867e6c391553f (patch)
tree3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/utils/simpleFormat.ts
parentmore config shit (diff)
downloaddep-core-80951013e391aab140800e4f386867e6c391553f.tar.xz
dep-core-80951013e391aab140800e4f386867e6c391553f.zip
add ts defs so not a lot of errors left
- made .todo file for epic error tracking
Diffstat (limited to 'src/utils/simpleFormat.ts')
-rw-r--r--src/utils/simpleFormat.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/simpleFormat.ts b/src/utils/simpleFormat.ts
index 0985546..4564778 100644
--- a/src/utils/simpleFormat.ts
+++ b/src/utils/simpleFormat.ts
@@ -3,7 +3,7 @@
* @param {number|string} value Value to format
* @returns {number} A number in fixed-point notation up to 2 decimal points
*/
-module.exports = value => {
+module.exports = (value: string) => {
const result = parseFloat(parseFloat(value).toFixed(2));
return result;
}; \ No newline at end of file