Update src/lib/mojang.ts
All checks were successful
Publish Package / build (push) Successful in 25s

This commit is contained in:
Lee 2024-07-30 20:58:36 +00:00
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);
}