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.