From 906e5e5f58cdd0cad8e626d490979a2fadc55f5e Mon Sep 17 00:00:00 2001 From: daimond113 Date: Fri, 6 Jun 2025 00:22:43 +0200 Subject: [PATCH] Simplify overloads --- jecs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jecs.d.ts b/jecs.d.ts index b6d936d..cac2208 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -157,8 +157,8 @@ export class World { * @param hook The hook to install. * @param value The hook callback. */ - set(component: Entity, hook: StatefulHook<(e: Entity, id: Id, data: T) => void>, value: (e: Entity, id: Id, data: T) => void): void; - set(component: Entity, hook: StatelessHook<(e: Entity, id: Id) => void>, value: (e: Entity, id: Id) => void): void; + 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.