From 2b9c04c90a84d06c03a1d613e8da1e9e2fa5b94a Mon Sep 17 00:00:00 2001 From: Six <23470032+6ixfalls@users.noreply.github.com> Date: Fri, 1 Aug 2025 22:46:19 -0700 Subject: [PATCH] feat: move InferComponents into Iter --- jecs.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jecs.d.ts b/jecs.d.ts index 6264ec7..6972f36 100755 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -52,26 +52,26 @@ export type Archetype = { columns_map: { [K in T[number]]: Column> }; }; -type Iter = IterableFunction>; +type Iter = IterableFunction]>>; export type CachedQuery = { /** * Returns an iterator that produces a tuple of [Entity, ...queriedComponents]. */ - iter(): Iter>; + iter(): Iter; /** * Returns the matched archetypes of the query * @returns An array of archetypes of the query */ archetypes(): Archetype[]; -} & Iter>; +} & Iter; export type Query = { /** * Returns an iterator that produces a tuple of [Entity, ...queriedComponents]. */ - iter(): Iter>; + iter(): Iter; /** * Creates and returns a cached version of this query for efficient reuse. @@ -99,7 +99,7 @@ export type Query = { * @returns An array of archetypes of the query */ archetypes(): Archetype[]; -} & Iter>; +} & Iter; export class World { /**