hive-bedrock-api 1.0.4 → 1.0.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { MethodResponse } from "../types/METHODS";
5
5
  export default function getAllTimeStats(playerIdentifier: string): Promise<MethodResponse<Omit<REQUEST_ALL, "main">> & {
6
6
  player: USER_MAIN;
7
7
  }>;
8
- export default function getAllTimeStats<G extends GAME>(playerIdentifier: string, game: G, options?: Options): Promise<MethodResponse<GAME_STATS<BASE_GAME_ALL>[G]>>;
8
+ export default function getAllTimeStats<G extends GAME>(playerIdentifier: string, game?: G, options?: Options): Promise<MethodResponse<GAME_STATS<BASE_GAME_ALL>[G]>>;
9
9
  export default function getAllTimeStats<G extends GAME>(playerIdentifier: string, game: G[], options?: Options): Promise<MethodResponse<{
10
10
  [M in G]: GAME_STATS_ALL<M>;
11
11
  }> & {
@@ -9,6 +9,5 @@ interface OptionsType extends Options {
9
9
  skip?: number;
10
10
  amount?: number;
11
11
  }
12
- export default function getMonthlyLeaderboard<G extends GAME>(game: G, options?: Options): Promise<MethodResponse<LB_STATS<G>[]>>;
13
- export default function getMonthlyLeaderboard<G extends GAME>(game: G, options: OptionsType): Promise<MethodResponse<LB_STATS<G>[]>>;
12
+ export default function getMonthlyLeaderboard<G extends GAME>(game: G, options?: OptionsType): Promise<MethodResponse<LB_STATS<G>[]>>;
14
13
  export {};
@@ -8,9 +8,9 @@ interface OptionsType extends Options {
8
8
  date?: Date;
9
9
  }
10
10
  export default function getMonthlyStats(playerIdentifier: string): Promise<MethodResponse<Omit<REQUEST_MONTHLY, "main">>>;
11
- export default function getMonthlyStats<G extends GAME>(playerIdentifier: string, game: G): Promise<MethodResponse<GAME_STATS<BASE_GAME_MONTHLY>[G]>>;
11
+ export default function getMonthlyStats<G extends GAME>(playerIdentifier: string, game?: G, options?: Options): Promise<MethodResponse<GAME_STATS<BASE_GAME_MONTHLY>[G]>>;
12
12
  export default function getMonthlyStats<G extends GAME>(playerIdentifier: string, game: G, options: OptionsType): Promise<MethodResponse<GAME_STATS<BASE_GAME_MONTHLY>[G]>>;
13
- export default function getMonthlyStats<G extends GAME>(playerIdentifier: string, game: G[]): Promise<MethodResponse<{
13
+ export default function getMonthlyStats<G extends GAME>(playerIdentifier: string, game: G[], options?: Options): Promise<MethodResponse<{
14
14
  [M in G]: GAME_STATS_ALL<M>;
15
15
  }>>;
16
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-bedrock-api",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-beta.1",
4
4
  "description": "An API wrapper for the Hive Minecraft Bedrock Edition server.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",