From cabc5829b453a589d9cf4e6e33bf8d5b9df07a47 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Mon, 18 Aug 2025 20:31:32 +0200 Subject: [PATCH] Allow tags in bulk_insert --- jecs.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jecs.d.ts b/jecs.d.ts index ad51e49..7ff01b0 100755 --- a/jecs.d.ts +++ b/jecs.d.ts @@ -338,10 +338,12 @@ export type ComponentRecord = { export function component_record(world: World, id: Id): ComponentRecord; +type TagToUndefined = T extends TagDiscriminator ? undefined : T + export function bulk_insert( world: World, entity: Entity, ids: C, - values: InferComponents, + values: { [K in keyof C]: TagToUndefined> }, ): void; export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;