Fix hook callback typings

This commit is contained in:
daimond113 2025-06-05 22:59:47 +02:00
parent d505a0a38d
commit 3ae240c93e
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

6
jecs.d.ts vendored
View file

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