Mejor type
This commit is contained in:
parent
a3c1f77d87
commit
39d4c1525d
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ function socialButtons(juego: Juego<State>): {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue