From 2c21c795109ef875bae5b54a57fe3496b70fc403 Mon Sep 17 00:00:00 2001 From: Christopher Buss Date: Thu, 29 Jan 2026 23:14:02 +0000 Subject: [PATCH] Add ECS_ID and ECS_GENERATION types (#298) --- 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; };