Skip to content

Commit

Permalink
Merge pull request #379 from WhitestormJS/#378
Browse files Browse the repository at this point in the history
PR for #378
  • Loading branch information
hirako2000 committed May 13, 2018
2 parents 8f4f0a0 + 93eb1c8 commit 9e4bafa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions types/core/Component.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import {ModuleSystem} from './ModuleSystem';
import {App} from './App';
import {Module} from './Module';

export interface ComponentParams {
modules?: [Module],
manager?: boolean
}

export class Component extends ModuleSystem {
/**
Expand Down
4 changes: 2 additions & 2 deletions types/core/MeshComponent.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component} from './Component';
import {Component, ComponentParams} from './Component';
import {CompositionError} from './errors';
import {
Material,
Mesh,
Object3D
} from 'three';

export interface MeshComponentParams {
export interface MeshComponentParams extends ComponentParams {
/**
* Sets whether the mesh should build right away after being constructed
* Default is true.
Expand Down

0 comments on commit 9e4bafa

Please sign in to comment.