Change type generic

This commit is contained in:
daimond113 2025-06-09 16:35:53 +02:00
parent e3609ce15f
commit 92f371cf99
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

2
jecs.d.ts vendored
View file

@ -157,7 +157,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<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.