Skip to content

Commit

Permalink
Export type function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Dec 18, 2024
1 parent 08ac6a9 commit 5a6357b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jecs.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ end

export type Id<T = unknown> = Entity<T>

type function _Pair(first, second)
export type function Pair(first, second)
local thing = first:components()[2]

if thing:readproperty(types.singleton("__T")):is("nil") then
Expand All @@ -1743,8 +1743,6 @@ type function _Pair(first, second)
end
end

export type Pair<T, U> = _Pair<T, U>

type Item<T...> = (self: Query<T...>) -> (Entity, T...)

export type Entity<T = nil> = number & { __T: T }
Expand Down

0 comments on commit 5a6357b

Please sign in to comment.