summaryrefslogtreecommitdiff
path: root/src/utils/truncateText.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/truncateText.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/truncateText.ts')
-rw-r--r--src/utils/truncateText.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/truncateText.ts b/src/utils/truncateText.ts
index bd2f311..f2fa7d0 100644
--- a/src/utils/truncateText.ts
+++ b/src/utils/truncateText.ts
@@ -3,4 +3,4 @@
* @param {number} [number=2048] Number to truncate to
* @returns {string} Truncated string or original if string was short enough to begin with
*/
-module.exports = (string, number = 2048) => (string.length > number ? `${string.substring(0, number - 3)}...` : string); \ No newline at end of file
+module.exports = (string: any, number = 2048) => (string.length > number ? `${string.substring(0, number - 3)}...` : string); \ No newline at end of file