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

This commit is contained in:
Magic 2025-01-17 00:45:55 +01:00 committed by GitHub
parent c354a29fb1
commit 0296c4b2f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) -> ()>,