Fix luau types

This commit is contained in:
Ukendio 2024-08-03 22:39:45 +02:00
parent 337f388093
commit 843f8c1914

View file

@ -16,7 +16,6 @@ type ArchetypeEdge = {
remove: Archetype,
}
type Archetype = {
id: number,
edges: { [i53]: ArchetypeEdge },
@ -723,7 +722,6 @@ local Arm = function(self: Query, ...)
end
local world_query
do
local EmptyQuery: Query = {
__iter = function(): Item
return noop
@ -1214,9 +1212,10 @@ export type Entity<T = any> = number & { __DO_NOT_USE_OR_YOU_WILL_BE_FIRED: T }
export type Pair = number
export type QueryShim<T...> = typeof(setmetatable({
without = function(...): QueryShim<T...>
return nil :: any
end,
without = noop :: (QueryShim<T...>, ...i53) -> QueryShim<T...>,
with = noop :: (QueryShim<T...>, ...i53) -> QueryShim<T...>,
drain = noop :: (QueryShim<T...>) -> QueryShim<T...>,
replace = noop :: (QueryShim<T...>, fn: (T...) -> T...) -> (),
}, {
__iter = function(): () -> (number, T...)
return nil :: any