From 6f6cc3b5149bd8f1b2f46b1a48a34735f2cca9e4 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Tue, 10 Jun 2025 16:33:48 +0200 Subject: [PATCH] Fix overloads --- jecs.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jecs.d.ts b/jecs.d.ts index 4ffb93b..015afc3 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -159,14 +159,13 @@ export class World { */ set(component: Entity, hook: StatefulHook, value: (e: Entity, id: Id, data: T) => void): void; set(component: Entity, hook: StatelessHook, value: (e: Entity, id: Id) => void): void; - /** * Assigns a value to a component on the given entity. * @param entity The target entity. * @param component The component definition (could be a Pair or Entity). * @param value The value to store with that component. */ - set>(entity: Entity, component: E, value: InferComponent): void; + set(entity: Entity, component: Id, value: T): void; /** * Cleans up the world by removing empty archetypes and rebuilding the archetype collections.