From 8c05ae0cc283e5db4d30874fc6c136e302d1b2b1 Mon Sep 17 00:00:00 2001 From: christopher-buss Date: Thu, 29 Jan 2026 23:11:31 +0000 Subject: [PATCH] Add ECS_ID and ECS_GENERATION types --- src/jecs.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jecs.d.ts b/src/jecs.d.ts index b4b4bfc..da0f6c4 100755 --- a/src/jecs.d.ts +++ b/src/jecs.d.ts @@ -323,6 +323,9 @@ export function pair_second(world: World, p: Pair): Entity; export function ECS_PAIR_FIRST(pair: Pair): number; export function ECS_PAIR_SECOND(pair: Pair): number; +export function ECS_ID(entity: Entity): number; +export function ECS_GENERATION(entity: Entity): number; + type HookWithData = Entity<(e: Entity, id: Id, data: T) => void> & { readonly __nominal_HookWithData: unique symbol; };