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 { /**