Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Jul 29, 2024
1 parent c1a7199 commit a28d5ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osu-api-extended",
"version": "2.8.51",
"version": "2.8.52",
"description": "Advanced osu! api wrapper for v1 and v2, with extra stuff",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
13 changes: 13 additions & 0 deletions src/types/v2_user_details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface response {
last_visit: string;
pm_friends_only: boolean;
profile_colour: string;
profile_hue?: number;
username: string;
cover_url: string;
discord: string;
Expand Down Expand Up @@ -52,6 +53,18 @@ export interface response {
}[];
beatmap_playcounts_count: number;
comments_count: number;
daily_challenge_user_stats: {
daily_streak_best: number
daily_streak_current: number
last_update?: string
last_weekly_streak?: string
playcount: number
top_10p_placements: number
top_50p_placements: number
user_id: number
weekly_streak_best: number
weekly_streak_current: number
}
favourite_beatmapset_count: number;
follower_count: number;
graveyard_beatmapset_count: number;
Expand Down

0 comments on commit a28d5ef

Please sign in to comment.