Skip to content

Commit

Permalink
add type updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mreinstein committed Jan 15, 2024
1 parent b121e80 commit 59ff95b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions types/ecs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export function createWorld(worldId?: number): World;
* @returns {Entity} the created entity
*/
export function createEntity(world: World): Entity;
export function getEntityId(world: any, entity: any): any;
export function getEntityById(world: any, entityId: any): any;
/**
* Adds a component to the entity
* @param {World} world world where listener will be invoked
Expand Down Expand Up @@ -191,6 +193,8 @@ export function cleanup(world: World): void;
declare namespace _default {
export { createWorld };
export { createEntity };
export { getEntityId };
export { getEntityById };
export { addComponentToEntity };
export { removeComponentFromEntity };
export { getEntities };
Expand Down
2 changes: 1 addition & 1 deletion types/ecs.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 59ff95b

Please sign in to comment.