From 5ecc0b265704dc8a80e0d3db2dbc13246b76a35a Mon Sep 17 00:00:00 2001 From: daimond113 Date: Wed, 20 Aug 2025 14:47:09 +0200 Subject: [PATCH] Add record typings --- jecs.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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