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
This commit is contained in:
Timofey Gelazoniya 2022-01-11 02:36:01 +03:00
parent a9dd6ff417
commit 9827dd60e2
Signed by: zeldon
GPG Key ID: 047886915281DD2A
3 changed files with 10 additions and 12 deletions

11
types/index.d.ts vendored
View File

@ -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;
};
export { pingBedrock } from "./lib/bedrock.js";

View File

@ -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: {

2
types/lib/java.d.ts vendored
View File

@ -1,4 +1,4 @@
import { PingOptions } from "..";
import { PingOptions } from "./bedrock";
export type SampleProp = {
name: string,