mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Export type function
This commit is contained in:
parent
08ac6a98db
commit
5a6357b8da
1 changed files with 1 additions and 3 deletions
|
@ -1733,7 +1733,7 @@ end
|
||||||
|
|
||||||
export type Id<T = unknown> = Entity<T>
|
export type Id<T = unknown> = Entity<T>
|
||||||
|
|
||||||
type function _Pair(first, second)
|
export type function Pair(first, second)
|
||||||
local thing = first:components()[2]
|
local thing = first:components()[2]
|
||||||
|
|
||||||
if thing:readproperty(types.singleton("__T")):is("nil") then
|
if thing:readproperty(types.singleton("__T")):is("nil") then
|
||||||
|
@ -1743,8 +1743,6 @@ type function _Pair(first, second)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
export type Pair<T, U> = _Pair<T, U>
|
|
||||||
|
|
||||||
type Item<T...> = (self: Query<T...>) -> (Entity, T...)
|
type Item<T...> = (self: Query<T...>) -> (Entity, T...)
|
||||||
|
|
||||||
export type Entity<T = nil> = number & { __T: T }
|
export type Entity<T = nil> = number & { __T: T }
|
||||||
|
|
Loading…
Reference in a new issue