mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
fix 'jecs.World.new()' being inferred to return 'any'
This commit is contained in:
parent
669c216387
commit
53de1d1ccc
1 changed files with 1 additions and 1 deletions
|
@ -2311,7 +2311,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