Skip to content

Commit

Permalink
Fixes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
okrad committed May 16, 2023
1 parent ba860e9 commit 90e118e
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions src/lib/types.d.ts
Original file line number Diff line number Diff line change
@@ -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<string>,
thresholds ?: Array<Threshold>
}

}
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<string>,
thresholds ?: Array<Threshold>
}

export default class ProgressBar extends SvelteComponentTyped<ProgressBarProps> {}

export interface SeriesStore {
subscribe,
set,
Expand Down

0 comments on commit 90e118e

Please sign in to comment.