Skip to content

Commit

Permalink
fix: add aliases +ts types
Browse files Browse the repository at this point in the history
  • Loading branch information
mezotv committed Aug 29, 2024
1 parent 1eed8c6 commit 76cd63e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/creators/europe.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"papaplatte": {
"name": "Papaplatte",
"aliases": ["lattensepp"],
"steam": {
"id": "76561198013760707",
"name": "lattensepp"
Expand All @@ -22,6 +23,7 @@
},
"honeypuu": {
"name": "HoneyPuu",
"aliases": null,
"steam": {
"id": "76561198405910426",
"name": "HoneyPuu"
Expand All @@ -43,6 +45,7 @@
},
"letshugo": {
"name": "LetsHugo",
"aliases": null,
"steam": {
"id": "76561198287958160",
"name": "LetsHugo"
Expand Down
Empty file added types/README.md
Empty file.
16 changes: 16 additions & 0 deletions types/typescript/CreatorInterface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
interface SocialMedia {
id: string | null;
name?: string | null;
username?: string | null;
partner?: boolean | null;
handle?: string | null;
}

interface Creator {
name: string;
aliases: string[] | null;
steam: SocialMedia | null;
discord: SocialMedia | null;
twitch: Omit<SocialMedia, 'name' | 'username' | 'handle'> | null;
youtube: Omit<SocialMedia, 'name' | 'username'> | null;
}

0 comments on commit 76cd63e

Please sign in to comment.