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

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

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

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

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

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