Skip to content

Commit

Permalink
fix typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MineFact committed Oct 23, 2023
1 parent 33d7e3a commit 087ae43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/package.json

This file was deleted.

6 changes: 3 additions & 3 deletions src/struct/core/buildteam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class BuildTeam {
if(this.psCities == null || this.psCities.size == 0)
await this.loadBuildTeamData();

const cities = [];
const cities: any[] = [];
for(const city of this.psCities.values())
cities.push(...city);

Expand Down Expand Up @@ -266,7 +266,7 @@ export default class BuildTeam {
if(this.psCities == null || this.psCities.size == 0)
await this.loadBuildTeamData();

const plots = [];
const plots: any[] = [];
for(const city of await this.getPSCities()){
const cityPlots = await this.getPSPlotsByCity(city.id);
plots.push(...cityPlots);
Expand Down Expand Up @@ -332,7 +332,7 @@ export default class BuildTeam {
if(this.psCities == null || this.psCities.size == 0)
await this.loadBuildTeamData();

const reviews = [];
const reviews: any[] = [];
for(const city of await this.getPSCities()){
const cityReviews = await this.getPSReviewsByCity(city.id);
reviews.push(...cityReviews);
Expand Down
2 changes: 1 addition & 1 deletion src/struct/core/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Network {
if(this.apiKeys == null || this.updateCacheTicks % Network.API_KEY_UPDATE_INTERVAL == 0)
this.apiKeys = await this.getAPIKeysFromDatabase();

let bar = null;
let bar:ProgressBar|null = null;
if (isStarting == true) {
// Get how many API keys there are as an integer
var len = (this?.apiKeys?.length ?? 0) + 1;
Expand Down

0 comments on commit 087ae43

Please sign in to comment.