diff --git a/lib/index.d.ts b/lib/index.d.ts index b3ba481..66ae62d 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -131,8 +131,19 @@ export class World { query(...components: T): Query>; } +/** + * Creates a composite key. + * @param pred The first entity + * @param obj The second entity + * @returns The composite key + */ export const pair: (pred: Entity, obj: Entity) => Entity; +/** + * Checks if the entity is a composite key + * @param e The entity to check + * @returns If the entity is a pair + */ export const IS_PAIR: (e: Entity) => boolean; export const OnAdd: Entity;