Re-add ECS_PAIR_* to typings (#241)
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled

* Add ECS_PAIR_* functions to typings

* Return simple numbers
This commit is contained in:
dai 2025-06-16 15:12:14 +02:00 committed by GitHub
parent 150fccd2ce
commit 993d57741f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
jecs.d.ts vendored
View file

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