Update src/lib/mojang.ts
All checks were successful
Publish Package / build (push) Successful in 25s
All checks were successful
Publish Package / build (push) Successful in 25s
This commit is contained in:
parent
86c6f613e6
commit
dbb0395865
@ -1,4 +1,4 @@
|
||||
import {CachedEndpointStatus} from "types/mojang/endpoint-status";
|
||||
import {EndpointStatuses} from "types/mojang/endpoint-status";
|
||||
import {API_ENDPOINT} from "..";
|
||||
import WebRequest from "../common/WebRequest";
|
||||
|
||||
@ -9,6 +9,6 @@ const endpointStatusEndpoint = API_ENDPOINT + "/mojang/status";
|
||||
*
|
||||
* @returns the Mojang API status
|
||||
*/
|
||||
export async function getMojangEndpointStatus(): Promise<CachedEndpointStatus> {
|
||||
return WebRequest.get<CachedEndpointStatus>(endpointStatusEndpoint);
|
||||
export async function getMojangEndpointStatus(): Promise<EndpointStatuses> {
|
||||
return WebRequest.get<EndpointStatuses>(endpointStatusEndpoint);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user