mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Fix regression with set
This commit is contained in:
parent
582a1c25ba
commit
c996bbc5c1
1 changed files with 1 additions and 1 deletions
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue