Return simple numbers

This commit is contained in:
daimond113 2025-06-09 16:24:29 +02:00
parent 1fdd590f4a
commit 2aadc41e6b
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

4
jecs.d.ts vendored
View file

@ -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,