diff --git a/jecs.d.ts b/jecs.d.ts index 15eb6c4..ad51e49 100755 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -56,13 +56,21 @@ export type Archetype = { columns_map: { [K in T[number]]: Column> }; }; -type Iter = IterableFunction]>>; +type IterFn = IterableFunction]>>; +type Iter = IterFn & { + /** + * This isn't callable + * @hidden + * @deprecated + */ + (): never +}; export type CachedQuery = { /** * Returns an iterator that produces a tuple of [Entity, ...queriedComponents]. */ - iter(): Iter; + iter(): IterFn; /** * Returns the matched archetypes of the query @@ -75,7 +83,7 @@ export type Query = { /** * Returns an iterator that produces a tuple of [Entity, ...queriedComponents]. */ - iter(): Iter; + iter(): IterFn; /** * Creates and returns a cached version of this query for efficient reuse.