Skip to content

Commit

Permalink
Change entity type (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketasaja authored Feb 9, 2025
1 parent 1d1b7b0 commit 6ec0b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jecs.luau
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ function World.new()
return self
end

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

export type Id<T = nil> =
| Entity<T>
Expand Down

0 comments on commit 6ec0b0b

Please sign in to comment.