Skip to content

Commit 71af812

Browse files
committed
fix: Typings for /stats/user/:userId
Changed `userId` from `number` to `string`.
1 parent 259aaf1 commit 71af812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stats/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type KOCUser = {
55
/**
66
* The User Id
77
*/
8-
id: number;
8+
id: string;
99
/**
1010
* The username of the account associated.
1111
*/
@@ -32,6 +32,6 @@ export type KOCUser = {
3232
*
3333
* @returns The users information.
3434
*/
35-
export function getUser(baseUrl: string, userId: number) {
35+
export function getUser(baseUrl: string, userId: string) {
3636
return axios.get<KOCUser>(`${baseUrl}/stats/user/${userId}`);
3737
}

0 commit comments

Comments
 (0)