From b5bd5a9a02dd906fcfb42acad10173d66b0441ea Mon Sep 17 00:00:00 2001 From: maeriil <104389763+maeriil@users.noreply.github.com> Date: Mon, 1 Dec 2025 14:21:40 -0500 Subject: [PATCH] Add types for (Cached)Query.has (#286) * ts type update * changed to hard tabs * reverted back to old formatting for some * more fixes * only keep query has --- src/jecs.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jecs.d.ts b/src/jecs.d.ts index d2cb20d..0d306a5 100755 --- a/src/jecs.d.ts +++ b/src/jecs.d.ts @@ -77,6 +77,8 @@ export type CachedQuery = { * @returns An array of archetypes of the query */ archetypes(): Archetype[]; + + has(entity: Entity): boolean; } & Iter; export type Query = { @@ -111,6 +113,8 @@ export type Query = { * @returns An array of archetypes of the query */ archetypes(): Archetype[]; + + has(entity: Entity): boolean; } & Iter; export class World {