diff --git a/src/jugando.ts b/src/jugando.ts index 1b01730..ce8f4fc 100644 --- a/src/jugando.ts +++ b/src/jugando.ts @@ -134,7 +134,7 @@ function socialButtons(juego: Juego): { let x = juego.canvas.width - 5; let s: any = {}; for (const network of ["facebook", "instagram", "twitter"]) { - const sprite = (juego.sprites as any)[network]; + const sprite = (juego.sprites as { [key in string]: Sprite })[network]; const width = sprite.getWidth(juego); const height = sprite.getHeight(juego); x -= width + 20;