File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ export class SteamAPI extends APIModel {
79
79
80
80
debugLog ( await fetchData . json ) ;
81
81
82
- let result ;
82
+ let result : any ;
83
83
for ( const [ key , value ] of Object . entries ( await fetchData . json ) ) {
84
84
// console.log(typeof key, key)
85
85
// console.log(typeof id, id)
86
86
// after some testing I found out that id is somehow a number despite that it's defined as string...
87
87
if ( key === String ( id ) ) {
88
- result = value . data ;
88
+ result = ( value as any ) . data ;
89
89
}
90
90
}
91
91
if ( ! result ) {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class WikipediaAPI extends APIModel {
58
58
59
59
const data = await fetchData . json ( ) ;
60
60
debugLog ( data ) ;
61
- const result = Object . entries ( data ?. query ?. pages ) [ 0 ] [ 1 ] ;
61
+ const result : any = Object . entries ( data ?. query ?. pages ) [ 0 ] [ 1 ] ;
62
62
63
63
const model = new WikiModel ( {
64
64
type : 'wiki' ,
You can’t perform that action at this time.
0 commit comments