diff --git a/jecs.d.ts b/jecs.d.ts index 7ff01b0..bc2e724 100755 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -347,3 +347,11 @@ export function bulk_insert( values: { [K in keyof C]: TagToUndefined> }, ): void; export function bulk_remove(world: World, entity: Entity, ids: Id[]): void; + +export type EntityRecord = { + archetype: Archetype, + row: number, + dense: number, +}; + +export function record(world: World, entity: Entity): EntityRecord;