From 3ae240c93e2f518e620689859a157a670800902c Mon Sep 17 00:00:00 2001 From: daimond113 Date: Thu, 5 Jun 2025 22:59:47 +0200 Subject: [PATCH] Fix hook callback typings --- jecs.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jecs.d.ts b/jecs.d.ts index 72b3215..daba057 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -280,9 +280,9 @@ export function pair_first(world: World, p: Pair): Entity

; */ export function pair_second(world: World, p: Pair): Entity; -export declare const OnAdd: Entity<(e: Entity) => void>; -export declare const OnRemove: Entity<(e: Entity) => void>; -export declare const OnChange: Entity<(e: Entity, value: unknown) => void>; +export declare const OnAdd: Entity<(e: Entity, id: Id, data: T) => void>; +export declare const OnRemove: Entity<(e: Entity, id: Id) => void>; +export declare const OnChange: Entity<(e: Entity, id: Id, data: T) => void>; export declare const ChildOf: Tag; export declare const Wildcard: Entity; export declare const w: Entity;