From 8e35900f65cfb6803cf1ee3884b8a1723188b4a9 Mon Sep 17 00:00:00 2001 From: dai Date: Mon, 9 Jun 2025 16:25:44 +0200 Subject: [PATCH] Add ECS_PAIR_* functions to TS typings (#238) * 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 4ffb93b..179a4b0 100644 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -289,6 +289,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, }