All checks were successful
Code quality checks / biome (push) Successful in 13s
22 lines
364 B
TypeScript
22 lines
364 B
TypeScript
type Badge = {
|
|
tooltip: string;
|
|
badge: string;
|
|
};
|
|
|
|
type BadgeResult = Badge[] | Record<string, Badge[]>;
|
|
|
|
interface FetchBadgesOptions {
|
|
nocache?: boolean;
|
|
separated?: boolean;
|
|
}
|
|
|
|
type badgeURLMap = {
|
|
service: string;
|
|
url:
|
|
| string
|
|
| ((userId: string) => string)
|
|
| ((userId: string) => {
|
|
user: string;
|
|
badge: (id: string) => string;
|
|
});
|
|
};
|