Fix server types
This commit is contained in:
parent
bf9fa6582f
commit
1eb4a9ec0e
2
JS-SDK/src/index.d.ts
vendored
2
JS-SDK/src/index.d.ts
vendored
@ -3,3 +3,5 @@ export * from "./types/generic";
|
||||
export * from "./types/mojang";
|
||||
export * from "./types/player";
|
||||
export * from "./types/server";
|
||||
export * from "./types/server/bedrock-server";
|
||||
export * from "./types/server/java-server";
|
||||
|
4
JS-SDK/src/types/server/bedrock-server.d.ts
vendored
4
JS-SDK/src/types/server/bedrock-server.d.ts
vendored
@ -28,7 +28,7 @@ export interface BedrockMinecraftServer extends MinecraftServer {
|
||||
/**
|
||||
* The version information of this server.
|
||||
*/
|
||||
version: Version;
|
||||
version: BedrockVersion;
|
||||
|
||||
/**
|
||||
* The gamemode of this server.
|
||||
@ -44,7 +44,7 @@ export type Edition = "MCPE" | "MCEE";
|
||||
/**
|
||||
* Version information for a server.
|
||||
*/
|
||||
export type Version = {
|
||||
export type BedrockVersion = {
|
||||
/**
|
||||
* The protocol version of the server.
|
||||
*/
|
||||
|
4
JS-SDK/src/types/server/java-server.d.ts
vendored
4
JS-SDK/src/types/server/java-server.d.ts
vendored
@ -18,7 +18,7 @@ export interface JavaMinecraftServer extends MinecraftServer {
|
||||
/**
|
||||
* The version information of this server.
|
||||
*/
|
||||
version: Version;
|
||||
version: JavaVersion;
|
||||
|
||||
/**
|
||||
* The favicon of this server, undefined if none.
|
||||
@ -70,7 +70,7 @@ export interface JavaMinecraftServer extends MinecraftServer {
|
||||
/**
|
||||
* Version information for a server.
|
||||
*/
|
||||
export type Version = {
|
||||
export type JavaVersion = {
|
||||
/**
|
||||
* The version name of the server.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user