badgeAPI/types/badge.d.ts
creations cbd92de7a5
All checks were successful
Code quality checks / biome (push) Successful in 13s
add Enmity shame!
2025-04-19 20:47:06 -04:00

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;
});
};