From 90e118e88e4cb776c3e7d7ced7fee5b40463308c Mon Sep 17 00:00:00 2001 From: Enrico Triolo Date: Tue, 16 May 2023 10:10:02 +0200 Subject: [PATCH] Fixes #37 --- src/lib/types.d.ts | 52 +++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/src/lib/types.d.ts b/src/lib/types.d.ts index 0580471..cea7033 100644 --- a/src/lib/types.d.ts +++ b/src/lib/types.d.ts @@ -1,34 +1,30 @@ -declare module "@okrad/svelte-progressbar" { - - export default class ProgressBar { - - $$prop_def: { - series: any, - style ?: string, - showProgressValue ?: boolean, - width ?: number | string, - thickness ?: number, - height ?: number, - textSize ?: number, - stackSeries ?: boolean, - margin ?: number, - addBackground ?: boolean, - bgFillColor ?: string, - bgColor ?: string, - labelColor ?: string, - valueLabel ?: string, - cls ?: string, - rx ?: number, - ry ?: number, - path ?: string, - colors ?: Array, - thresholds ?: Array - } - - } +import {SvelteComponentTyped} from "svelte"; +interface ProgressBarProps { + series: any, + style ?: string, + showProgressValue ?: boolean, + width ?: number | string, + thickness ?: number, + height ?: number, + textSize ?: number, + stackSeries ?: boolean, + margin ?: number, + addBackground ?: boolean, + bgFillColor ?: string, + bgColor ?: string, + labelColor ?: string, + valueLabel ?: string, + cls ?: string, + rx ?: number, + ry ?: number, + path ?: string, + colors ?: Array, + thresholds ?: Array } +export default class ProgressBar extends SvelteComponentTyped {} + export interface SeriesStore { subscribe, set,