From 9827dd60e26bbd90da0f53441925314c0a53e2ef Mon Sep 17 00:00:00 2001 From: xzeldon Date: Tue, 11 Jan 2022 02:36:01 +0300 Subject: [PATCH] style(types): the PingOptions type was removed from index.d.ts file The PingOptions type was moved from index.d.ts to lib/bedrock.d.ts --- types/index.d.ts | 11 +---------- types/lib/bedrock.d.ts | 9 ++++++++- types/lib/java.d.ts | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index eb72a5f..3ddd087 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,11 +1,2 @@ export { pingJava } from "./lib/java.js"; -export { pingBedrock } from "./lib/bedrock.js"; - -/** - * @param port The server port. - * @param timeout The read/write socket timeout. - */ -export type PingOptions = { - port: number, - timeout: number; -}; \ No newline at end of file +export { pingBedrock } from "./lib/bedrock.js"; \ No newline at end of file diff --git a/types/lib/bedrock.d.ts b/types/lib/bedrock.d.ts index ed2ac70..0a7d81d 100644 --- a/types/lib/bedrock.d.ts +++ b/types/lib/bedrock.d.ts @@ -1,4 +1,11 @@ -import { PingOptions } from ".."; +/** + * @param port The server port. + * @param timeout The read/write socket timeout. + */ +export type PingOptions = { + port: number, + timeout: number; +}; export type BedrockPingResponse = { version: { diff --git a/types/lib/java.d.ts b/types/lib/java.d.ts index 73db119..3126934 100644 --- a/types/lib/java.d.ts +++ b/types/lib/java.d.ts @@ -1,4 +1,4 @@ -import { PingOptions } from ".."; +import { PingOptions } from "./bedrock"; export type SampleProp = { name: string,