From 592b30414787891a5d432092235e0deec9acc998 Mon Sep 17 00:00:00 2001 From: "Thomas (DJ1TJOO)" <44841260+DJ1TJOO@users.noreply.github.com> Date: Sun, 16 Jan 2022 10:41:09 +0100 Subject: [PATCH] Fixed typescript type errors (#1335) --- src/js/game/map_chunk.js | 2 +- src/js/savegame/serialization.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/game/map_chunk.js b/src/js/game/map_chunk.js index ca2db36f..2f92ee08 100644 --- a/src/js/game/map_chunk.js +++ b/src/js/game/map_chunk.js @@ -433,7 +433,7 @@ export class MapChunk { * Sets the chunks contents * @param {number} tileX * @param {number} tileY - * @param {Entity=} contents + * @param {Entity} contents * @param {Layer} layer */ setLayerContentFromWorldCords(tileX, tileY, contents, layer) { diff --git a/src/js/savegame/serialization.js b/src/js/savegame/serialization.js index 9a0ce3a5..770f166f 100644 --- a/src/js/savegame/serialization.js +++ b/src/js/savegame/serialization.js @@ -138,7 +138,7 @@ export const types = { /** * A full schema declaration - * @typedef {Object.} Schema + * @typedef {Object. | object} Schema */ const globalSchemaCache = {};