Compare commits

..

No commits in common. "51b09549dbb1d09db4a0747e39c27191b7167244" and "2d9432ab7a5fec6b6315cc3b270518d6fc000a6b" have entirely different histories.

12
jecs.d.ts vendored
View file

@ -338,20 +338,10 @@ export type ComponentRecord = {
export function component_record(world: World, id: Id): 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[]>( export function bulk_insert<const C extends Id[]>(
world: World, world: World,
entity: Entity, entity: Entity,
ids: C, ids: C,
values: { [K in keyof C]: TagToUndefined<InferComponent<C[K]>> }, values: InferComponents<C>,
): void; ): void;
export function bulk_remove(world: World, entity: Entity, ids: Id[]): void; export function bulk_remove(world: World, entity: Entity, ids: Id[]): void;
export type EntityRecord<T extends Id[]> = {
archetype: Archetype<T>,
row: number,
dense: number,
};
export function record<T extends Id[] = []>(world: World, entity: Entity): EntityRecord<T>;