fix 'jecs.World.new()' being inferred to return 'any'

This commit is contained in:
marked 2025-01-16 22:14:59 +01:00
parent 669c216387
commit 53de1d1ccc

View file

@ -2311,7 +2311,7 @@ export type World = {
}
return {
World = World,
World = World :: { new: () -> World },
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,