File tree Expand file tree Collapse file tree 1 file changed +24
-28
lines changed Expand file tree Collapse file tree 1 file changed +24
-28
lines changed Original file line number Diff line number Diff line change 1
- declare module "@okrad/svelte-progressbar" {
2
-
3
- export default class ProgressBar {
4
-
5
- $$prop_def : {
6
- series : any ,
7
- style ?: string ,
8
- showProgressValue ?: boolean ,
9
- width ?: number | string ,
10
- thickness ?: number ,
11
- height ?: number ,
12
- textSize ?: number ,
13
- stackSeries ?: boolean ,
14
- margin ?: number ,
15
- addBackground ?: boolean ,
16
- bgFillColor ?: string ,
17
- bgColor ?: string ,
18
- labelColor ?: string ,
19
- valueLabel ?: string ,
20
- cls ?: string ,
21
- rx ?: number ,
22
- ry ?: number ,
23
- path ?: string ,
24
- colors ?: Array < string > ,
25
- thresholds ?: Array < Threshold >
26
- }
27
-
28
- }
1
+ import { SvelteComponentTyped } from "svelte" ;
29
2
3
+ interface ProgressBarProps {
4
+ series : any ,
5
+ style ?: string ,
6
+ showProgressValue ?: boolean ,
7
+ width ?: number | string ,
8
+ thickness ?: number ,
9
+ height ?: number ,
10
+ textSize ?: number ,
11
+ stackSeries ?: boolean ,
12
+ margin ?: number ,
13
+ addBackground ?: boolean ,
14
+ bgFillColor ?: string ,
15
+ bgColor ?: string ,
16
+ labelColor ?: string ,
17
+ valueLabel ?: string ,
18
+ cls ?: string ,
19
+ rx ?: number ,
20
+ ry ?: number ,
21
+ path ?: string ,
22
+ colors ?: Array < string > ,
23
+ thresholds ?: Array < Threshold >
30
24
}
31
25
26
+ export default class ProgressBar extends SvelteComponentTyped < ProgressBarProps > { }
27
+
32
28
export interface SeriesStore {
33
29
subscribe ,
34
30
set ,
You can’t perform that action at this time.
0 commit comments