Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Fix wrong header names
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Mar 25, 2022
1 parent 528f833 commit b491095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typed-hypixel-api",
"version": "0.1.3",
"version": "0.1.4",
"main": "build/index.js",
"types": "build/index.d.js",
"repository": "https://github.com/skyblockstats/typed-hypixel-api.git",
Expand All @@ -13,4 +13,4 @@
"typescript": "^4.6.2",
"undici": "^4.16.0"
}
}
}
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const BASE_URL = 'https://api.hypixel.net/'
type Response<
R,
H extends Record<string, string | number> = {
'X-RateLimit-Limit': number,
'X-RateLimit-Remaining': number,
'X-Ratelimit-Reset': number
'RateLimit-Limit': number,
'RateLimit-Remaining': number,
'Ratelimit-Reset': number
}
>
= { data: R, headers: H }
Expand Down

0 comments on commit b491095

Please sign in to comment.