mirror of
https://github.com/minescope/mineping.git
synced 2024-12-25 18:25:46 +00:00
docs(docs): сhanged the module name according to the scope, added links to src files
This commit is contained in:
parent
24a4880230
commit
1249fa7632
3
types/lib/bedrock.d.ts
vendored
3
types/lib/bedrock.d.ts
vendored
@ -28,7 +28,7 @@ export type BedrockPingResponse = {
|
||||
* @param host The Bedrock server address.
|
||||
*
|
||||
* ```js
|
||||
* import { pingBedrock } from 'mineping';
|
||||
* import { pingBedrock } from '@minescope/mineping';
|
||||
*
|
||||
* const data = await pingBedrock('mco.mineplex.com');
|
||||
* console.log(data);
|
||||
@ -43,6 +43,7 @@ export type BedrockPingResponse = {
|
||||
* gamemode: 'Survival'
|
||||
* }
|
||||
* ```
|
||||
* @see [source](https://github.com/minescope/mineping/blob/24a48802300f988d3ae520edbeb4f3e12820dcc9/lib/java.js#L117)
|
||||
*/
|
||||
export function pingBedrock(host: string, options?: PingOptions): Promise<BedrockPingResponse>;
|
||||
|
||||
|
3
types/lib/java.d.ts
vendored
3
types/lib/java.d.ts
vendored
@ -32,7 +32,7 @@ export type JavaPingResponse = {
|
||||
* @param options The configuration for pinging Minecraft Java server.
|
||||
*
|
||||
* ```js
|
||||
* import { pingJava } from 'mineping';
|
||||
* import { pingJava } from '@minescope/mineping';
|
||||
*
|
||||
* const data = await pingJava('mc.hypixel.net');
|
||||
* console.log(data);
|
||||
@ -48,6 +48,7 @@ export type JavaPingResponse = {
|
||||
* favicon: 'data:image/png;base64,iVBORw0KGg...
|
||||
}
|
||||
* ```
|
||||
* @see [source](https://github.com/minescope/mineping/blob/8c84925ef7f5c420a7ef52740cba027491e82934/lib/bedrock.js#L158)
|
||||
*/
|
||||
export function pingJava(host: string, options?: PingOptions): Promise<JavaPingResponse>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user