diff --git a/types/core/Component.d.ts b/types/core/Component.d.ts index 7fe6a64e1..2922c4667 100644 --- a/types/core/Component.d.ts +++ b/types/core/Component.d.ts @@ -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 { /** diff --git a/types/core/MeshComponent.d.ts b/types/core/MeshComponent.d.ts index dcedca506..0964205d3 100644 --- a/types/core/MeshComponent.d.ts +++ b/types/core/MeshComponent.d.ts @@ -1,4 +1,4 @@ -import {Component} from './Component'; +import {Component, ComponentParams} from './Component'; import {CompositionError} from './errors'; import { Material, @@ -6,7 +6,7 @@ import { 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.