forked from creations/badgeAPI
add Enmity shame!
This commit is contained in:
parent
9ff5d1adee
commit
cbd92de7a5
4 changed files with 69 additions and 25 deletions
11
types/badge.d.ts
vendored
11
types/badge.d.ts
vendored
|
@ -9,3 +9,14 @@ interface FetchBadgesOptions {
|
|||
nocache?: boolean;
|
||||
separated?: boolean;
|
||||
}
|
||||
|
||||
type badgeURLMap = {
|
||||
service: string;
|
||||
url:
|
||||
| string
|
||||
| ((userId: string) => string)
|
||||
| ((userId: string) => {
|
||||
user: string;
|
||||
badge: (id: string) => string;
|
||||
});
|
||||
};
|
||||
|
|
5
types/config.d.ts
vendored
5
types/config.d.ts
vendored
|
@ -3,8 +3,3 @@ type Environment = {
|
|||
host: string;
|
||||
development: boolean;
|
||||
};
|
||||
|
||||
type badgeURLMap = {
|
||||
service: string;
|
||||
url: string | ((userId: string) => string);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue