Correct arguments

This commit is contained in:
daimond113 2025-07-27 16:49:24 +02:00
parent 8458210d2e
commit 909eb46bd5
No known key found for this signature in database

4
jecs.d.ts vendored
View file

@ -249,8 +249,8 @@ export class World {
query<T extends Id[]>(...components: T): Query<InferComponents<T>>;
added<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>, value: T) => void): () => void
changed<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>) => void): () => void
removed<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>, value: T) => void): () => void
changed<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>, value: T) => void): () => void
removed<T>(component: Entity<T>, listener: (e: Entity, id: Id<T>) => void): () => void
}
export function world(): World;