fix "set" method defition

This commit is contained in:
nonamie 2024-12-14 11:30:50 +03:00
parent edf2e642c4
commit e28a6bc819

2
jecs.d.ts vendored
View file

@ -149,7 +149,7 @@ export class World {
* @param component Target Component
* @param value Component Value
*/
set(entity: Id, component: Entity, value: InferComponent<typeof component>): void;
set<TComponent extends Entity>(entity: Id, component: TComponent, value: InferComponent<NoInfer<TComponent>>): void;
/**
* Removes a component from the given entity