Skip to content

Commit

Permalink
feat: moved types to different files
Browse files Browse the repository at this point in the history
Wolfkid200444 committed Nov 20, 2023
1 parent b2fd814 commit 60955c0
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
export interface CustomBadges {
customBadgesArray: {
badge: string;
name: string;
badges: [
{
name: string;
badge: string;
},
];
};
aliu: {
dev: boolean;
donor: boolean;
contributor: boolean;
custom: {
url: string;
text: string;
};
};
bd: {
dev: boolean;
};
enmity: {
supporter: {
data: {
name: string;
id: string;
url: {
dark: string;
light: string;
};
};
};
staff: {
data: {
name: string;
id: string;
url: {
dark: string;
light: string;
};
};
};
dev: {
data: {
name: string;
id: string;
url: {
dark: string;
light: string;
};
};
};
contributor: {
data: {
name: string;
id: string;
url: {
dark: string;
light: string;
};
};
};
};
goosemod: {
sponsor: boolean;
dev: boolean;
translator: boolean;
};
vencord: {
contributor: boolean;
cutie: [
{
tooltip: string;
image: string;
},
];
};
userpfp: string;
}

export interface BadgeArgs {
guildId: string;
user: User;
}

export type BadgeMod = (args: BadgeArgs) => React.ReactElement<{
children: React.ReactElement[];
className: string;
}>;

export type BadgeCache = {
badges: CustomBadges;
lastFetch: number;
};

0 comments on commit 60955c0

Please sign in to comment.