mirror of
https://github.com/Ukendio/jecs.git
synced 2025-09-23 08:39:16 +00:00
Correct
This commit is contained in:
parent
5ecc0b2657
commit
ad1ee31e57
1 changed files with 3 additions and 3 deletions
6
jecs.d.ts
vendored
6
jecs.d.ts
vendored
|
@ -346,10 +346,10 @@ export function bulk_insert<const C extends Id[]>(
|
|||
): void;
|
||||
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
|
||||
|
||||
export type EntityRecord<E extends Entity> = {
|
||||
archetype: Archetype<[E]>,
|
||||
export type EntityRecord<T extends Id[]> = {
|
||||
archetype: Archetype<T>,
|
||||
row: 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>;
|
||||
|
|
Loading…
Reference in a new issue