From 6cce0e0f650cecd5705958dbdba2be32b52bfa60 Mon Sep 17 00:00:00 2001 From: FC <68158483+FC5570@users.noreply.github.com> Date: Sun, 21 Jul 2024 23:24:51 +0530 Subject: [PATCH] fix: remove typings export (#252) --- .cliff-jumperrc.json | 2 +- .gitignore | 3 ++- src/lib/index.ts | 1 - src/lib/typings/classes/APIGuild.d.ts | 2 ++ src/lib/typings/classes/APIPlayer.d.ts | 2 ++ src/lib/typings/classes/APISkyBlockAuction.d.ts | 2 ++ src/lib/typings/classes/APISkyBlockProfile.d.ts | 2 ++ src/lib/typings/classes/Util.d.ts | 2 ++ src/lib/typings/managers/PlayerManager.d.ts | 2 ++ src/lib/typings/managers/ResourceManager.d.ts | 2 ++ typedoc.json | 2 +- 11 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.cliff-jumperrc.json b/.cliff-jumperrc.json index 8023aa2..31b8c96 100644 --- a/.cliff-jumperrc.json +++ b/.cliff-jumperrc.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/favware/cliff-jumper/main/assets/cliff-jumper.schema.json", "name": "hypixel.ts", "packagePath": ".", - "dryRun": true, + "dryRun": false, "commitMessageTemplate": "chore(release): release {{new-version}}", "tagTemplate": "v{{new-version}}" } diff --git a/.gitignore b/.gitignore index 18a864f..dfde019 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env* *.gz node_modules/ -docs/ \ No newline at end of file +docs/ +dist/ \ No newline at end of file diff --git a/src/lib/index.ts b/src/lib/index.ts index a65d912..73e8bca 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -2,4 +2,3 @@ export * from './Client'; export * from './rest/index'; export * from './managers/index'; export * from './classes/index'; -export * from './typings/index'; diff --git a/src/lib/typings/classes/APIGuild.d.ts b/src/lib/typings/classes/APIGuild.d.ts index c4c1bf0..1918049 100644 --- a/src/lib/typings/classes/APIGuild.d.ts +++ b/src/lib/typings/classes/APIGuild.d.ts @@ -1,3 +1,5 @@ +import type { Guild } from '../../classes/Guild'; + /** * The Guild object returned from the API (in JSON) which is converted to @see {@link Guild} class. * @category Interfaces diff --git a/src/lib/typings/classes/APIPlayer.d.ts b/src/lib/typings/classes/APIPlayer.d.ts index 011bcab..25108d2 100644 --- a/src/lib/typings/classes/APIPlayer.d.ts +++ b/src/lib/typings/classes/APIPlayer.d.ts @@ -1,3 +1,5 @@ +import type { Player } from '../../classes/Player'; + /** * The Player object returned from the API (in JSON) which is converted to the @see {@link Player} class. * @category Interfaces diff --git a/src/lib/typings/classes/APISkyBlockAuction.d.ts b/src/lib/typings/classes/APISkyBlockAuction.d.ts index 93df489..f33f36d 100644 --- a/src/lib/typings/classes/APISkyBlockAuction.d.ts +++ b/src/lib/typings/classes/APISkyBlockAuction.d.ts @@ -1,3 +1,5 @@ +import type { SkyBlockAuction } from '../../classes/SkyBlockAuction'; + /** * The Auction object returned from the API (in JSON) which is converted to the @see {@link SkyBlockAuction} class. * @category Interfaces diff --git a/src/lib/typings/classes/APISkyBlockProfile.d.ts b/src/lib/typings/classes/APISkyBlockProfile.d.ts index 4c79d1f..1fec88b 100644 --- a/src/lib/typings/classes/APISkyBlockProfile.d.ts +++ b/src/lib/typings/classes/APISkyBlockProfile.d.ts @@ -1,3 +1,5 @@ +import type { SkyBlockProfile } from '../../classes/SkyBlockProfile'; + /** * The Profile object returned from the API (in JSON) which is converted to the @see {@link SkyBlockProfile} class. * @category Interfaces diff --git a/src/lib/typings/classes/Util.d.ts b/src/lib/typings/classes/Util.d.ts index 5942635..9a47d57 100644 --- a/src/lib/typings/classes/Util.d.ts +++ b/src/lib/typings/classes/Util.d.ts @@ -1,3 +1,5 @@ +import type { Util } from '../../classes/Util'; + /** * Response returned by mojang API for user uuid lookup * @category Interfaces diff --git a/src/lib/typings/managers/PlayerManager.d.ts b/src/lib/typings/managers/PlayerManager.d.ts index e2e4c80..d7de2a3 100644 --- a/src/lib/typings/managers/PlayerManager.d.ts +++ b/src/lib/typings/managers/PlayerManager.d.ts @@ -1,3 +1,5 @@ +import type { PlayerManager } from '../../managers/PlayerManager'; + /** * Recently played games returned by hypixel API * @category Interfaces diff --git a/src/lib/typings/managers/ResourceManager.d.ts b/src/lib/typings/managers/ResourceManager.d.ts index aae245e..f33cb07 100644 --- a/src/lib/typings/managers/ResourceManager.d.ts +++ b/src/lib/typings/managers/ResourceManager.d.ts @@ -1,3 +1,5 @@ +import type { ResourceManager } from '../../managers/ResourceManager'; + /** * All other responses extend this interface as they have the common property 'lastUpdated'. * @category Interfaces diff --git a/typedoc.json b/typedoc.json index fb9adfd..2c1af50 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,5 +1,5 @@ { - "entryPoints": ["src/index.ts"], + "entryPoints": ["src/index.ts", "src/lib/typings/index.ts"], "cleanOutputDir": true, "excludeExternals": true, "out": "docs",