mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Return simple numbers
This commit is contained in:
parent
1fdd590f4a
commit
2aadc41e6b
1 changed files with 2 additions and 2 deletions
4
jecs.d.ts
vendored
4
jecs.d.ts
vendored
|
@ -289,8 +289,8 @@ 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<P, O>(pair: Pair<P, O>): Entity<P>;
|
export function ECS_PAIR_FIRST(pair: Pair): number;
|
||||||
export function ECS_PAIR_SECOND<P, O>(pair: Pair<P, O>): Entity<O>;
|
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,
|
||||||
|
|
Loading…
Reference in a new issue