From 993d57741f048aba842404f321c2cec7f356c435 Mon Sep 17 00:00:00 2001 From: dai Date: Mon, 16 Jun 2025 15:12:14 +0200 Subject: [PATCH] Re-add ECS_PAIR_* to typings (#241) * Add ECS_PAIR_* functions to typings * Return simple numbers --- jecs.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jecs.d.ts b/jecs.d.ts index 12ba7a4..a9caeae 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -288,6 +288,9 @@ export function pair_first(world: World, p: Pair): Entity

; */ 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; + type StatefulHook = Entity<(e: Entity, id: Id, data: T) => void> & { readonly __nominal_StatefulHook: unique symbol, }