Add ECS_ID and ECS_GENERATION types

This commit is contained in:
christopher-buss 2026-01-29 23:11:31 +00:00
parent c9b3362a9c
commit 8c05ae0cc2
No known key found for this signature in database
GPG key ID: 76FC39C6626045EC

3
src/jecs.d.ts vendored
View file

@ -323,6 +323,9 @@ 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_FIRST(pair: Pair): number;
export function ECS_PAIR_SECOND(pair: Pair): number; export function ECS_PAIR_SECOND(pair: Pair): number;
export function ECS_ID(entity: Entity): number;
export function ECS_GENERATION(entity: Entity): number;
type HookWithData = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & { type HookWithData = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
readonly __nominal_HookWithData: unique symbol; readonly __nominal_HookWithData: unique symbol;
}; };