Fix world:set type

This commit is contained in:
vnnh 2024-09-28 08:36:34 -05:00
parent 6def84e8d9
commit 582e02e0be

2
src/index.d.ts vendored
View file

@ -135,7 +135,7 @@ export class World {
* @param component Target Component
* @param data Component Data
*/
set<T>(entity: Entity, component: Id<T>, data: T): void;
set<T>(entity: Entity, component: Id<T>, data: NoInfer<T>): void;
/**
* Removes a component from the given entity