Add ECS_PAIR_* functions to typings

This commit is contained in:
daimond113 2025-06-08 18:19:52 +02:00
parent dab260f733
commit 1fdd590f4a
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

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 ECS_PAIR_FIRST<P, O>(pair: Pair<P, O>): Entity<P>;
export function ECS_PAIR_SECOND<P, O>(pair: Pair<P, O>): Entity<O>;
type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
readonly __nominal_StatefulHook: unique symbol,
}