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 {