mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Fix hook callback typings
This commit is contained in:
parent
d505a0a38d
commit
3ae240c93e
1 changed files with 3 additions and 3 deletions
6
jecs.d.ts
vendored
6
jecs.d.ts
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue