Fix regression with set

This commit is contained in:
daimond113 2025-06-15 17:15:19 +02:00
parent 582a1c25ba
commit c996bbc5c1
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

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 component The component definition (could be a Pair or Entity).
* @param value The value to store with that component. * @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. * Cleans up the world by removing empty archetypes and rebuilding the archetype collections.