Skip to content

Commit

Permalink
Merge pull request #25 from MozillaReality/fix-types
Browse files Browse the repository at this point in the history
Fix getSystem, export ECSYThreeEntity Type
  • Loading branch information
fernandojsg authored Aug 5, 2020
2 parents 931eed7 + 9f03e2b commit d21c96b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { ECSYThreeWorld } from "./world";
export { ECSYThreeSystem } from "./system";
export * from "./world";
export * from "./system";
export * from "./entity";
export * as ThreeTypes from "./types/index";
export * from "./components/index";
export * from "./systems/index";
Expand Down
2 changes: 1 addition & 1 deletion src/world.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ECSYThreeEntity } from "./entity.js";
import { ECSYThreeSystem } from "./system.js";

export class ECSYThreeWorld extends World {
getSystem<S extends System>(System: SystemConstructor<S>): ECSYThreeSystem
getSystem<S extends System>(System: SystemConstructor<S>): S
getSystems(): Array<ECSYThreeSystem>
createEntity(name?: string): ECSYThreeEntity;
}

0 comments on commit d21c96b

Please sign in to comment.