mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Fix luau types
This commit is contained in:
parent
337f388093
commit
843f8c1914
1 changed files with 4 additions and 5 deletions
|
@ -16,7 +16,6 @@ type ArchetypeEdge = {
|
||||||
remove: Archetype,
|
remove: Archetype,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type Archetype = {
|
type Archetype = {
|
||||||
id: number,
|
id: number,
|
||||||
edges: { [i53]: ArchetypeEdge },
|
edges: { [i53]: ArchetypeEdge },
|
||||||
|
@ -723,7 +722,6 @@ local Arm = function(self: Query, ...)
|
||||||
end
|
end
|
||||||
local world_query
|
local world_query
|
||||||
do
|
do
|
||||||
|
|
||||||
local EmptyQuery: Query = {
|
local EmptyQuery: Query = {
|
||||||
__iter = function(): Item
|
__iter = function(): Item
|
||||||
return noop
|
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 Pair = number
|
||||||
|
|
||||||
export type QueryShim<T...> = typeof(setmetatable({
|
export type QueryShim<T...> = typeof(setmetatable({
|
||||||
without = function(...): QueryShim<T...>
|
without = noop :: (QueryShim<T...>, ...i53) -> QueryShim<T...>,
|
||||||
return nil :: any
|
with = noop :: (QueryShim<T...>, ...i53) -> QueryShim<T...>,
|
||||||
end,
|
drain = noop :: (QueryShim<T...>) -> QueryShim<T...>,
|
||||||
|
replace = noop :: (QueryShim<T...>, fn: (T...) -> T...) -> (),
|
||||||
}, {
|
}, {
|
||||||
__iter = function(): () -> (number, T...)
|
__iter = function(): () -> (number, T...)
|
||||||
return nil :: any
|
return nil :: any
|
||||||
|
|
Loading…
Reference in a new issue