mirror of
https://github.com/Ukendio/jecs.git
synced 2025-06-19 15:59:18 +00:00
Re-add ECS_PAIR_* to typings (#241)
Some checks failed
Some checks failed
* Add ECS_PAIR_* functions to typings * Return simple numbers
This commit is contained in:
parent
150fccd2ce
commit
993d57741f
1 changed files with 3 additions and 0 deletions
3
jecs.d.ts
vendored
3
jecs.d.ts
vendored
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue