Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Jul 6, 2022
2 parents 8eff2b9 + a17adb6 commit 2cb242f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 50 deletions.
94 changes: 47 additions & 47 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
import "./index.css";
interface StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
}
interface StarcounterParams {
showBtn: string;
showStargazers: string;
showButtonCount: string;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
goalDiff: string;
}
declare class Starcounter implements StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
wrapperElem: Element;
mainSection: HTMLDivElement;
secondarySection: HTMLDivElement;
endpoint: string;
stargazersUrl: string;
repoUrl: string;
stargazers_count: number;
goalStep: number;
goalDiff: boolean;
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
getApi: (path?: string) => Promise<unknown>;
render: () => Promise<void>;
renderButton: () => void;
renderStargazers: () => Promise<void>;
renderGoalStep: () => void;
}
export default Starcounter;
import "./index.css";
interface StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
}
interface StarcounterParams {
showBtn: string;
showStargazers: string;
showButtonCount: string;
user: string;
repo: string;
theme: string;
nbItems: number;
goalStep: number;
goalDiff: string;
}
declare class Starcounter implements StarcounterInterface {
showBtn: boolean;
showStargazers: boolean;
showButtonCount: boolean;
user: string;
repo: string;
theme: string;
nbItems: number;
wrapperElem: Element;
mainSection: HTMLDivElement;
secondarySection: HTMLDivElement;
endpoint: string;
stargazersUrl: string;
repoUrl: string;
stargazers_count: number;
goalStep: number;
goalDiff: boolean;
constructor({ showBtn, showStargazers, showButtonCount, user, repo, theme, nbItems, goalStep, goalDiff, }: Partial<StarcounterParams>);
getApi: (path?: string) => Promise<unknown>;
render: () => Promise<void>;
renderButton: () => void;
renderStargazers: () => Promise<void>;
renderGoalStep: () => void;
}
export default Starcounter;
2 changes: 1 addition & 1 deletion build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-starcounter",
"version": "1.1.8",
"version": "1.1.9",
"description": "Give a shout-out to your Stargazers and proudly display their support",
"main": "build/index.js",
"types": "build/types/index.d.ts",
Expand Down

0 comments on commit 2cb242f

Please sign in to comment.