mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Narrow aabb types and give generic aliases their type argument
The aabb functions all index the named members, so passing the shorthand [MapPosition, MapPosition] form would error at runtime. The annotations now say so. emmylua requires a type argument on a generic alias, luals did not. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,7 @@ local Selection = {
|
||||
--- @field player_index number
|
||||
--- @field selection Selection.Active
|
||||
|
||||
--- @type table<string, { [defines.events]: Selection.event_handler[] }>
|
||||
--- @type table<string, { [defines.events]: Selection.event_handler<any>[] }>
|
||||
_registered = {},
|
||||
|
||||
--- @package
|
||||
|
||||
Reference in New Issue
Block a user