diff --git a/jecs.d.ts b/jecs.d.ts index ad51e49..f5aeb0d 100755 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -345,3 +345,11 @@ export function bulk_insert( values: InferComponents, ): void; export function bulk_remove(world: World, entity: Entity, ids: Id[]): void; + +export type EntityRecord = { + archetype: Archetype<[E]>, + row: number, + dense: number, +}; + +export function record(world: World, entity: E): EntityRecord; \ No newline at end of file