mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Change type generic
This commit is contained in:
parent
e3609ce15f
commit
92f371cf99
1 changed files with 1 additions and 1 deletions
2
jecs.d.ts
vendored
2
jecs.d.ts
vendored
|
@ -157,7 +157,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<E extends Id<unknown>>(entity: Entity, component: E, value: InferComponent<E>): void;
|
set<T>(entity: Entity, component: Id<T>, value: T): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Installs a hook on the given component.
|
* Installs a hook on the given component.
|
||||||
|
|
Loading…
Reference in a new issue