Allow tags in bulk_insert

This commit is contained in:
daimond113 2025-08-18 20:31:32 +02:00
parent bd00edc8c0
commit cabc5829b4
No known key found for this signature in database

4
jecs.d.ts vendored
View file

@ -338,10 +338,12 @@ export type ComponentRecord = {
export function component_record(world: World, id: Id): ComponentRecord;
type TagToUndefined<T> = T extends TagDiscriminator ? undefined : T
export function bulk_insert<const C extends Id[]>(
world: World,
entity: Entity,
ids: C,
values: InferComponents<C>,
values: { [K in keyof C]: TagToUndefined<InferComponent<C[K]>> },
): void;
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;