fix build errors

This commit is contained in:
mProjectsCode 2022-07-02 13:19:59 +02:00
parent 317b43016b
commit 2c3fe62059
2 changed files with 3 additions and 3 deletions

View file

@ -79,13 +79,13 @@ export class SteamAPI extends APIModel {
debugLog(await fetchData.json);
let result;
let result: any;
for (const [key, value] of Object.entries(await fetchData.json)) {
// console.log(typeof key, key)
// console.log(typeof id, id)
// after some testing I found out that id is somehow a number despite that it's defined as string...
if (key === String(id)) {
result = value.data;
result = (value as any).data;
}
}
if (!result) {

View file

@ -58,7 +58,7 @@ export class WikipediaAPI extends APIModel {
const data = await fetchData.json();
debugLog(data);
const result = Object.entries(data?.query?.pages)[0][1];
const result: any = Object.entries(data?.query?.pages)[0][1];
const model = new WikiModel({
type: 'wiki',