From 39d4c1525d8eed151fd23cd234f37c66fbc45ded Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 7 Jul 2021 18:34:08 +0000 Subject: [PATCH] Mejor type --- src/jugando.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;