Fix regression with set (#242)

This commit is contained in:
dai 2025-06-16 15:12:01 +02:00 committed by GitHub
parent 8420d8832b
commit 150fccd2ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
jecs.d.ts vendored
View file

@ -165,7 +165,7 @@ export class World {
* @param component The component definition (could be a Pair or Entity).
* @param value The value to store with that component.
*/
set<T>(entity: Entity, component: Id<T>, value: T): void;
set<E extends Id<unknown>>(entity: Entity, component: E, value: InferComponent<E>): void;
/**
* Cleans up the world by removing empty archetypes and rebuilding the archetype collections.