Skip to content

Commit 2c3fe62

Browse files
committed
fix build errors
1 parent 317b430 commit 2c3fe62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/apis/SteamAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ export class SteamAPI extends APIModel {
7979

8080
debugLog(await fetchData.json);
8181

82-
let result;
82+
let result: any;
8383
for (const [key, value] of Object.entries(await fetchData.json)) {
8484
// console.log(typeof key, key)
8585
// console.log(typeof id, id)
8686
// after some testing I found out that id is somehow a number despite that it's defined as string...
8787
if (key === String(id)) {
88-
result = value.data;
88+
result = (value as any).data;
8989
}
9090
}
9191
if (!result) {

src/api/apis/WikipediaAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class WikipediaAPI extends APIModel {
5858

5959
const data = await fetchData.json();
6060
debugLog(data);
61-
const result = Object.entries(data?.query?.pages)[0][1];
61+
const result: any = Object.entries(data?.query?.pages)[0][1];
6262

6363
const model = new WikiModel({
6464
type: 'wiki',

0 commit comments

Comments
 (0)