This commit is contained in:
daimond113 2025-08-20 14:51:35 +02:00
parent 5ecc0b2657
commit ad1ee31e57
No known key found for this signature in database

6
jecs.d.ts vendored
View file

@ -346,10 +346,10 @@ export function bulk_insert<const C extends Id[]>(
): void; ): void;
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void; export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
export type EntityRecord<E extends Entity> = { export type EntityRecord<T extends Id[]> = {
archetype: Archetype<[E]>, archetype: Archetype<T>,
row: number, row: number,
dense: number, dense: number,
}; };
export function record<E extends Entity>(world: World, entity: E): EntityRecord<E>; export function record<T extends Id[] = []>(world: World, entity: Entity): EntityRecord<T>;