From 886f00ca168e4cdd89aeddfb4e07f0e3a93b2aa9 Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sun, 7 Jul 2024 23:05:57 -0400 Subject: [PATCH] Add world.clear to the types --- src/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 6ab901a..6a42670 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -55,6 +55,12 @@ export class World { */ target(id: Entity, relation: Entity): Entity | undefined; + /** + * Clears an entity from the world. + * @praram id Entity to be cleared + */ + clear(id: Entity): void; + /** * Deletes an entity and all its related components and relationships. * @param id Entity to be destroyed