Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Convert src/structures into typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Jul 28, 2024
1 parent 3d34b20 commit b49ffef
Show file tree
Hide file tree
Showing 87 changed files with 6,069 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
- [ ] I've check for issues. (`npm run eslint`)
- [ ] I've fixed my formatting. (`npm run prettier`)

</details>
</details>
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ To report a vulnerability you can do so in the [Discord Server](https://discord.
or you can contact the primary contributor of this repository using the following contact methods:

- @kathund. on Discord
- @kathundd on Telegram
- @kathundd on Telegram
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ XL:
XXL:
name: size/XXL
lines: 5000
color: E50009
color: E50009
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"dependencies": {
"axios": "^1.7.2",
"node-cache": "^5.1.2",
"prismarine-nbt": "^2.5.0"
"prismarine-nbt": "^2.5.0",
"skyhelper-networth": "^1.21.0"
},
"license": "MIT",
"readme": "https://github.com/Hypixel-API-Reborn/hypixel-api-reborn?tab=readme-ov-file#hypixel-api--reborn",
Expand Down
136 changes: 89 additions & 47 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
}
]
}
}
}
2 changes: 1 addition & 1 deletion src/Private/defaultCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ class Cache implements CacheHandler {
}
}

module.exports = Cache;
export default Cache;
114 changes: 56 additions & 58 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,64 +1,62 @@
import Client from './Client.ts';
import Errors from './Errors.ts';
import Client from './Client';
import Errors from './Errors';

export const version = require('../package.json').version;
import APIStatus from './structures/APIStatus.ts';
import APIIncident from './structures/APIIncident.ts';
import Player from './structures/Player.ts';
import Game from './structures/Game.ts';
import Status from './structures/Status.ts';
import Color from './structures/Color.ts';
import APIStatus from './structures/APIStatus';
import APIIncident from './structures/APIIncident';
import Player from './structures/Player';
import Game from './structures/Game';
import Status from './structures/Status';
import Color from './structures/Color';
import Pet from './structures/Pet';
import Pets from './structures/Pets';
import PlayerCosmetics from './structures/PlayerCosmetics';
import Challenges from './structures/Static/Challenges.ts';
import GameChallenges from './structures/Static/GameChallenges.ts';
import WatchdogStats from './structures/Watchdog/Stats.ts';
import Guild from './structures/Guild/GuildMember.js';
import GuildMember from './structures/Guild/GuildMember.ts';
import GuildRank from './structures/Guild/GuildRank.ts';
import SkyblockProfile from './structures/SkyBlock/SkyblockProfile.ts';
import SkyblockMember from './structures/SkyBlock/SkyblockMember.ts';
import SkyblockGarden from './structures/SkyBlock/SkyblockGarden.ts';
import SkyblockInventoryItem from './structures/SkyBlock/SkyblockInventoryItem.ts';
import Challenges from './structures/Static/Challenges';
import GameChallenges from './structures/Static/GameChallenges';
import WatchdogStats from './structures/Watchdog/Stats';
import Guild from './structures/Guild/GuildMember';
import GuildMember from './structures/Guild/GuildMember';
import GuildRank from './structures/Guild/GuildRank';
import SkyblockProfile from './structures/SkyBlock/SkyblockProfile';
import SkyblockMember from './structures/SkyBlock/SkyblockMember';
import SkyblockGarden from './structures/SkyBlock/SkyblockGarden';
import SkyblockInventoryItem from './structures/SkyBlock/SkyblockInventoryItem';
import SkyblockPet from './structures/SkyBlock/SkyblockPet';
import GovernmentData from './structures/SkyBlock/Static/Government.ts';
import Candidate from './structures/SkyBlock/Static/Candidate.ts';
import BingoData from './structures/SkyBlock/Static/BingoData.ts';
import Bingo from './structures/SkyBlock/Static/Bingo.ts';
import BaseAuction from './structures/SkyBlock/Auctions/BaseAuction.ts';
import PartialAuction from './structures/SkyBlock/Auctions/PartialAuction.ts';
import Auction from './structures/SkyBlock/Auctions/Auction.ts';
import AuctionInfo from './structures/SkyBlock/Auctions/AuctionInfo.ts';
import Bid from './structures/SkyBlock/Auctions/Bid.ts';
import FireSale from './structures/SkyBlock/Static/FireSale.ts';
import Product from './structures/SkyBlock/Bazzar/Product.ts';
import Order from './structures/SkyBlock/Bazzar/Order.ts';
import GovernmentData from './structures/SkyBlock/Static/Government';
import Candidate from './structures/SkyBlock/Static/Candidate';
import BingoData from './structures/SkyBlock/Static/BingoData';
import Bingo from './structures/SkyBlock/Static/Bingo';
import BaseAuction from './structures/SkyBlock/Auctions/BaseAuction';
import PartialAuction from './structures/SkyBlock/Auctions/PartialAuction';
import Auction from './structures/SkyBlock/Auctions/Auction';
import AuctionInfo from './structures/SkyBlock/Auctions/AuctionInfo';
import Bid from './structures/SkyBlock/Auctions/Bid';
import FireSale from './structures/SkyBlock/Static/FireSale';
import Product from './structures/SkyBlock/Bazzar/Product';
import Order from './structures/SkyBlock/Bazzar/Order';
import SkyblockNews from './structures/SkyBlock/News/SkyblockNews';
import Booster from './structures/Boosters/Booster.ts';
import House from './structures/House.ts';
import Arcade from './structures/MiniGames/Arcade.ts';
import ArenaBrawl from './structures/MiniGames/ArenaBrawl.ts';
import BedWars from './structures/MiniGames/BedWars.ts';
import BlitzSurvivalGames from './structures/MiniGames/BlitzSurvivalGames.ts';
import BuildBattle from './structures/MiniGames/BuildBattle.ts';
import CopsAndCrims from './structures/MiniGames/CopsAndCrims.ts';
import Duels from './structures/MiniGames/Duels.ts';
import MegaWalls from './structures/MiniGames/MegaWalls.ts';
import MurderMystery from './structures/MiniGames/MurderMystery.ts';
import Paintball from './structures/MiniGames/Paintball.ts';
import Pit from './structures/MiniGames/Pit.ts';
import Quakecraft from './structures/MiniGames/Quakecraft.ts';
import SkyWars from './structures/MiniGames/SkyWars.ts';
import SmashHeroes from './structures/MiniGames/SmashHeroes.ts';
import SpeedUHC from './structures/MiniGames/SpeedUHC.ts';
import TNTGames from './structures/MiniGames/TNTGames.ts';
import TurboKartRacers from './structures/MiniGames/TurboKartRacers.ts';
import UHC from './structures/MiniGames/UHC.ts';
import VampireZ from './structures/MiniGames/VampireZ.ts';
import Walls from './structures/MiniGames/Walls.ts';
import Warlords from './structures/MiniGames/Warlords.ts';
import WoolWars from './structures/MiniGames/WoolWars.ts';
import Leaderboard from './structures/Leaderboard.ts';
import ServerInfo from './structures/ServerInfo.ts';
import Utils from './utils';
import Booster from './structures/Boosters/Booster';
import House from './structures/House';
import Arcade from './structures/MiniGames/Arcade';
import ArenaBrawl from './structures/MiniGames/ArenaBrawl';
import BedWars from './structures/MiniGames/BedWars';
import BlitzSurvivalGames from './structures/MiniGames/BlitzSurvivalGames';
import BuildBattle from './structures/MiniGames/BuildBattle';
import CopsAndCrims from './structures/MiniGames/CopsAndCrims';
import Duels from './structures/MiniGames/Duels';
import MegaWalls from './structures/MiniGames/MegaWalls';
import MurderMystery from './structures/MiniGames/MurderMystery';
import Paintball from './structures/MiniGames/Paintball';
import Pit from './structures/MiniGames/Pit';
import Quakecraft from './structures/MiniGames/Quakecraft';
import SkyWars from './structures/MiniGames/SkyWars';
import SmashHeroes from './structures/MiniGames/SmashHeroes';
import SpeedUHC from './structures/MiniGames/SpeedUHC';
import TNTGames from './structures/MiniGames/TNTGames';
import TurboKartRacers from './structures/MiniGames/TurboKartRacers';
import UHC from './structures/MiniGames/UHC';
import VampireZ from './structures/MiniGames/VampireZ';
import Walls from './structures/MiniGames/Walls';
import Warlords from './structures/MiniGames/Warlords';
import WoolWars from './structures/MiniGames/WoolWars';
import Leaderboard from './structures/Leaderboard';
import ServerInfo from './structures/ServerInfo';
Loading

0 comments on commit b49ffef

Please sign in to comment.