Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #254 from simonihmig/fix-type
Browse files Browse the repository at this point in the history
Fix wrong hasRegisteredComponent type
  • Loading branch information
robertlong authored Sep 10, 2020
2 parents 121ad7d + fc03952 commit df6573f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/World.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class World {
* Evluate whether a component has been registered to this world or not.
* @param Component Type of component to to evaluate
*/
hasRegisteredComponent<C extends Component<any>>(Component: Component<C>): boolean;
hasRegisteredComponent<C extends Component<any>>(Component: ComponentConstructor<C>): boolean;

/**
* Register a system.
Expand Down Expand Up @@ -68,7 +68,7 @@ export class World {
* Resume execution of this world.
*/
play(): void

/**
* Stop execution of this world.
*/
Expand Down

0 comments on commit df6573f

Please sign in to comment.