Add ECS_PAIR_* functions to TS typings (#238)

* Add ECS_PAIR_* functions to typings

* Return simple numbers
This commit is contained in:
dai 2025-06-09 16:25:44 +02:00 committed by GitHub
parent dab260f733
commit 8e35900f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
jecs.d.ts vendored
View file

@ -289,6 +289,9 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
*/ */
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>; export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
export function ECS_PAIR_FIRST(pair: Pair): number;
export function ECS_PAIR_SECOND(pair: Pair): number;
type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & { type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
readonly __nominal_StatefulHook: unique symbol, readonly __nominal_StatefulHook: unique symbol,
} }