mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
fix 'jecs.World.new()' being inferred to return 'any' (#177)
This commit is contained in:
parent
c354a29fb1
commit
0296c4b2f9
1 changed files with 1 additions and 1 deletions
|
@ -2313,7 +2313,7 @@ export type World = {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
World = World,
|
World = World :: { new: () -> World },
|
||||||
|
|
||||||
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
|
||||||
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
|
||||||
|
|
Loading…
Reference in a new issue