mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Doc comments
This commit is contained in:
parent
a1b82c7e3b
commit
c186dbace0
1 changed files with 11 additions and 0 deletions
11
lib/index.d.ts
vendored
11
lib/index.d.ts
vendored
|
@ -131,8 +131,19 @@ export class World {
|
|||
query<T extends Entity[]>(...components: T): Query<InferComponents<T>>;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
|
Loading…
Reference in a new issue