From 1413be61cdf53720fec04f2d11e1ad1ceb7f9447 Mon Sep 17 00:00:00 2001 From: chodoru Date: Thu, 1 May 2025 15:05:38 +0300 Subject: [PATCH] updated ts typings --- jecs.d.ts | 3 +++ jecs.luau | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jecs.d.ts b/jecs.d.ts index 7e53388..1319a74 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -256,6 +256,9 @@ export function pair_first(world: World, p: Pair): Entity

; */ export function pair_second(world: World, p: Pair): Entity; +export declare const is_tag: (world: World,id:Id)=>boolean; +export declare const tag: ()=> Entity; +export declare const meta: (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>; diff --git a/jecs.luau b/jecs.luau index 3d61e96..6c19e89 100644 --- a/jecs.luau +++ b/jecs.luau @@ -2646,7 +2646,6 @@ return { tag = (ECS_TAG :: any) :: () -> Entity, meta = (ECS_META :: any) :: (id: Entity, id: Id, value: T) -> Entity, is_tag = (ecs_is_tag :: any) :: (World, Id) -> boolean, - OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>, OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>, OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,