fix cache
All checks were successful
Publish Package / build (push) Successful in 19s

This commit is contained in:
Lee 2024-04-19 21:14:17 +01:00
parent db98cf20a1
commit 436c9be3e5
5 changed files with 25 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "mcutils-library",
"version": "1.2.5",
"version": "1.2.6",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -1,11 +1,16 @@
import {Status} from "../status";
import {Cache} from "../cache";
export interface CachedEndpointStatus extends Cache, EndpointStatus {
export interface CachedEndpointStatus extends EndpointStatus {
/**
* The endpoint statuses.
*/
endpoints: EndpointStatus[];
/**
* The cache information.
*/
cache: Cache;
}
type EndpointStatus = {

View File

@ -1,6 +1,11 @@
import {Cache} from "../cache";
export interface CachedPlayer extends Cache, Player {}
export interface CachedPlayer extends Player {
/**
* The cache information.
*/
cache: Cache;
}
type Player = {
/**

View File

@ -1,7 +1,12 @@
import {MinecraftServer} from "../server";
import {Cache} from "../../cache";
export interface CachedBedrockMinecraftServer extends Cache, BedrockMinecraftServer {}
export interface CachedBedrockMinecraftServer extends BedrockMinecraftServer {
/**
* The cache information.
*/
cache: Cache;
}
interface BedrockMinecraftServer extends MinecraftServer {
/**

View File

@ -1,7 +1,12 @@
import {MinecraftServer} from "../server";
import {Cache} from "../../cache";
export interface CachedJavaMinecraftServer extends Cache, JavaMinecraftServer {}
export interface CachedJavaMinecraftServer extends JavaMinecraftServer {
/**
* The cache information.
*/
cache: Cache;
}
interface JavaMinecraftServer extends MinecraftServer {
/**