|
1 | | -import "./index.css"; |
2 | | -interface StarcounterInterface { |
3 | | - showBtn: boolean; |
4 | | - showStargazers: boolean; |
5 | | - showButtonCount: boolean; |
6 | | - user: string; |
7 | | - repo: string; |
8 | | - theme: string; |
9 | | - nbItems: number; |
10 | | - goalStep: number; |
11 | | -} |
12 | | -interface StarcounterParams { |
13 | | - showBtn: string; |
14 | | - showStargazers: string; |
15 | | - showButtonCount: string; |
16 | | - user: string; |
17 | | - repo: string; |
18 | | - theme: string; |
19 | | - nbItems: number; |
20 | | - goalStep: number; |
21 | | - goalDiff: string; |
22 | | -} |
23 | | -declare class Starcounter implements StarcounterInterface { |
24 | | - showBtn: boolean; |
25 | | - showStargazers: boolean; |
26 | | - showButtonCount: boolean; |
27 | | - user: string; |
28 | | - repo: string; |
29 | | - theme: string; |
30 | | - nbItems: number; |
31 | | - wrapperElem: Element; |
32 | | - mainSection: HTMLDivElement; |
33 | | - secondarySection: HTMLDivElement; |
34 | | - endpoint: string; |
35 | | - stargazersUrl: string; |
36 | | - repoUrl: string; |
37 | | - stargazers_count: number; |
38 | | - goalStep: number; |
39 | | - goalDiff: boolean; |
40 | | - constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>); |
41 | | - getApi: (path?: string) => Promise<unknown>; |
42 | | - render: () => Promise<void>; |
43 | | - renderButton: () => void; |
44 | | - renderStargazers: () => Promise<void>; |
45 | | - renderGoalStep: () => void; |
46 | | -} |
47 | | -export default Starcounter; |
| 1 | +import "./index.css"; |
| 2 | +interface StarcounterInterface { |
| 3 | + showBtn: boolean; |
| 4 | + showStargazers: boolean; |
| 5 | + showButtonCount: boolean; |
| 6 | + user: string; |
| 7 | + repo: string; |
| 8 | + theme: string; |
| 9 | + nbItems: number; |
| 10 | + goalStep: number; |
| 11 | +} |
| 12 | +interface StarcounterParams { |
| 13 | + showBtn: string; |
| 14 | + showStargazers: string; |
| 15 | + showButtonCount: string; |
| 16 | + user: string; |
| 17 | + repo: string; |
| 18 | + theme: string; |
| 19 | + nbItems: number; |
| 20 | + goalStep: number; |
| 21 | + goalDiff: string; |
| 22 | +} |
| 23 | +declare class Starcounter implements StarcounterInterface { |
| 24 | + showBtn: boolean; |
| 25 | + showStargazers: boolean; |
| 26 | + showButtonCount: boolean; |
| 27 | + user: string; |
| 28 | + repo: string; |
| 29 | + theme: string; |
| 30 | + nbItems: number; |
| 31 | + wrapperElem: Element; |
| 32 | + mainSection: HTMLDivElement; |
| 33 | + secondarySection: HTMLDivElement; |
| 34 | + endpoint: string; |
| 35 | + stargazersUrl: string; |
| 36 | + repoUrl: string; |
| 37 | + stargazers_count: number; |
| 38 | + goalStep: number; |
| 39 | + goalDiff: boolean; |
| 40 | + constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>); |
| 41 | + getApi: (path?: string) => Promise<unknown>; |
| 42 | + render: () => Promise<void>; |
| 43 | + renderButton: () => void; |
| 44 | + renderStargazers: () => Promise<void>; |
| 45 | + renderGoalStep: () => void; |
| 46 | +} |
| 47 | +export default Starcounter; |
0 commit comments