Fix world:set type (#134)

This commit is contained in:
vnnh 2024-09-28 13:13:23 -05:00 committed by GitHub
parent 6def84e8d9
commit c4deb715fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
src/index.d.ts vendored
View file

@ -135,7 +135,7 @@ export class World {
* @param component Target Component * @param component Target Component
* @param data Component Data * @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 * Removes a component from the given entity