From fbc4f0f3aa0b0f5358f416e23ff10151eb5ea2fc 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 {