File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
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 ) {
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments