Make World.contains a number->Entity typeguard (#279)
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run

This commit is contained in:
dai 2025-09-21 14:13:59 +02:00 committed by GitHub
parent 7e1f43aff5
commit 35cb0bca4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
jecs.d.ts vendored
View file

@ -236,6 +236,12 @@ export class World {
*/
contains(entity: Entity): boolean;
/**
* Checks if an entity exists in the world.
* @param entity The entity to verify.
*/
contains(entity: number): entity is Entity;
/**
* Checks if an entity with the given ID is currently alive, ignoring its generation.
* @param entity The entity to verify.