mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 00:14:52 +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:
1 parent
90f32699c7
commit
b9cfbc9036
6 files changed
+48
-43
No files matched your search
@@ -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