updated ts typings

This commit is contained in:
chodoru 2025-05-01 15:05:38 +03:00
parent 6a8d991185
commit 1413be61cd
2 changed files with 3 additions and 1 deletions

3
jecs.d.ts vendored
View file

@ -256,6 +256,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 declare const is_tag: <T>(world: World,id:Id<T>)=>boolean;
export declare const tag: <T>()=> Entity<T>;
export declare const meta: <T>(id: Entity, uid: Entity, value?: T) => void;
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>;

View file

@ -2646,7 +2646,6 @@ return {
tag = (ECS_TAG :: any) :: <T>() -> Entity<T>,
meta = (ECS_META :: any) :: <T>(id: Entity, id: Id<T>, value: T) -> Entity<T>,
is_tag = (ecs_is_tag :: any) :: <T>(World, Id<T>) -> boolean,
OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,