From ffc5bf5ba9903b211ae635c966137402ad6d2263 Mon Sep 17 00:00:00 2001 From: Yetity Date: Fri, 9 Jun 2023 11:19:12 +0200 Subject: [PATCH] Forgot types --- package.json | 2 +- src/index.d.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/index.d.ts diff --git a/package.json b/package.json index fbb3a5d..8a5c9e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yetnt/progressbar", - "version": "1.0.0", + "version": "1.0.1", "description": "An easy, simple and customizable string progress bar", "main": "src/index.js", "scripts": { diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..7e946d5 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,11 @@ +declare function progressBar( + percentage: number, + barWidth: number, + emptyChars: string, + fullChars: string, + returnAr?: boolean, + firstEdgeOverride?: string[], + lastEdgeOverride?: string[] +): string | string[]; + +export = { progressBar };