Correct partial table types

`_display_data` is a cache keyed by force name, not a single record.
The auto complete accumulator starts empty, so its fields are optional.
Game commands have no usage beyond their own help text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
bbassie
2026-08-07 15:31:18 +00:00
co-authored by Claude Opus 5
parent 1387b8a2db
commit d78ae40c5d
6 changed files with 9 additions and 6 deletions
@@ -77,7 +77,8 @@ local function get_player_cache(player_index)
-- Create a new cache if the previous on is in use
if not cache or cache.task and not cache.task.completed then
cache = {} --[[@as any]]
--- @diagnostic disable-next-line: missing-fields
cache = {} --[[@as TreeDeconCache]]
end
local player = assert(game.get_player(player_index))