Skip to content

Commit b945cb1

Browse files
committed
Fixes build type of Camera and Mesh component classes
1 parent 60a0388 commit b945cb1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

types/core/CameraComponent.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from './Component';
2-
import {CompositionError} from '../core'
2+
import {CompositionError} from '../core';
33

44
export interface CameraComponentParams {
55
build?: boolean;
@@ -24,7 +24,7 @@ export class CameraComponent extends Component {
2424
*/
2525
constructor(params?: CameraComponentParams, defaults?: CameraComponentParams, instructions?: object);
2626

27-
build(): CompositionError;
27+
build(): CompositionError | any;
2828

2929
wrap(): Promise<CameraComponent>;
3030

types/core/MeshComponent.d.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import {Component} from './Component';
22
import {CompositionError} from './errors';
3-
import {Material} from 'three';
3+
import {
4+
Material,
5+
Mesh
6+
} from 'three';
47

58
interface MeshComponentParams {
69
/**
@@ -62,7 +65,7 @@ export class MeshComponent extends Component {
6265
/**
6366
* @throws a CompositionError.
6467
*/
65-
build(): CompositionError | MeshComponent;
68+
build(): CompositionError | Mesh;
6669

6770
/**
6871
* @returns a Promised mesh component

0 commit comments

Comments
 (0)