Skip to content

Commit

Permalink
Exports all param interfaces - this is particularly useful when doing…
Browse files Browse the repository at this point in the history
… typed assignment of params which seems to be a common angular practice WhitestormJS#327
  • Loading branch information
hirako2000 committed Oct 15, 2017
1 parent 94a250d commit 2e9bf9b
Show file tree
Hide file tree
Showing 42 changed files with 55 additions and 53 deletions.
2 changes: 1 addition & 1 deletion types/components/cameras/CubeCamera.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {

import {CubeCamera as CubeCameraNative} from 'three';

interface CubeCameraParams extends CameraComponentParams {
export interface CubeCameraParams extends CameraComponentParams {
near?: number,
far?: number,
cubeResolution?: number
Expand Down
2 changes: 1 addition & 1 deletion types/components/cameras/OrthographicCamera.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {

import {OrthographicCamera as OrthographicCameraNative} from 'three';

interface OrthographicCameraParams extends CameraComponentParams {
export interface OrthographicCameraParams extends CameraComponentParams {
near?: number,
far?: number,
left?: number,
Expand Down
2 changes: 1 addition & 1 deletion types/components/cameras/PerspectiveCamera.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {

import {PerspectiveCamera as PerspectiveCameraNative} from 'three';

interface PerspectiveCameraParams extends CameraComponentParams {
export interface PerspectiveCameraParams extends CameraComponentParams {
near?: number,
far?: number,
fov?: number,
Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/AmbientLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
LightComponent
} from '../../core';

interface AmbientLightParams {
export interface AmbientLightParams {
/** hexadecimal color of the light. Default is 0xffffff (white). */
color: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/AreaLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LightComponentParams
} from '../../core';

interface AreaLightParams extends LightComponentParams {
export interface AreaLightParams extends LightComponentParams {
/** hexadecimal color of the light. Default is 0xffffff (white). */
color?: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/DirectionalLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LightComponentParams
} from '../../core';

interface DirectionalLightParams extends LightComponentParams {
export interface DirectionalLightParams extends LightComponentParams {
/** hexadecimal color of the light. Default is 0xffffff (white). */
color: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/HemisphereLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LightComponentParams
} from '../../core';

interface HemisphereLightParams extends LightComponentParams {
export interface HemisphereLightParams extends LightComponentParams {
/** hexadecimal color of the sky, Default is 0xffffff. */
skyColor?: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/PointLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LightComponentParams
} from '../../core';

interface PointLightParams extends LightComponentParams {
export interface PointLightParams extends LightComponentParams {
/** hexadecimal color of the light. Default is 0xffffff (white). */
color?: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/lights/SpotLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LightComponentParams
} from '../../core';

interface SpotLightParams extends LightComponentParams {
export interface SpotLightParams extends LightComponentParams {
/** hexadecimal color of the light. Default is 0xffffff (white). */
color?: number,

Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Box.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Mesh
} from 'three';

interface BoxParams extends MeshComponentParams {
export interface BoxParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
4 changes: 2 additions & 2 deletions types/components/meshes/Cone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ConeGeometry
} from 'three';

interface ConeParams extends MeshComponentParams {
export interface ConeParams extends MeshComponentParams {
/** Geometry params */
geometry?: {

Expand Down Expand Up @@ -57,7 +57,7 @@ interface ConeParams extends MeshComponentParams {
}
}

interface BufferedConeParams extends ConeParams {
export interface BufferedConeParams extends ConeParams {

/** Sets whether to build a buffered geometry */
buffer?: boolean
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Cylinder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Mesh
} from 'three';

interface CylinderParams extends MeshComponentParams {
export interface CylinderParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
6 changes: 3 additions & 3 deletions types/components/meshes/Dodecahedron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import {
/**
* this is missing in @types from three.js :(
*
* @interface DodecahedronBufferGeometry
* @export interface DodecahedronBufferGeometry
* @extends {Geometry}
*/
interface DodecahedronBufferGeometry extends BufferGeometry {
export interface DodecahedronBufferGeometry extends BufferGeometry {
constructor(radius: number, detail: number): DodecahedronBufferGeometry;

geometry?: {
Expand All @@ -25,7 +25,7 @@ interface DodecahedronBufferGeometry extends BufferGeometry {
};
}

interface DodecahedronParams extends MeshComponentParams {
export interface DodecahedronParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
4 changes: 2 additions & 2 deletions types/components/meshes/Extrude.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Vector
} from 'three';

interface ExtrudeParams extends MeshComponentParams {
export interface ExtrudeParams extends MeshComponentParams {

/** Geometry parameters */
geometry: {
Expand Down Expand Up @@ -83,7 +83,7 @@ interface ExtrudeParams extends MeshComponentParams {
buffer?: boolean;
}

interface ExtrudeParamsOptions {
export interface ExtrudeParamsOptions {

}

Expand Down
4 changes: 2 additions & 2 deletions types/components/meshes/Icosahedron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
PolyhedronGeometry
} from 'three';

interface IcosahedronBufferGeometry extends PolyhedronGeometry {
export interface IcosahedronBufferGeometry extends PolyhedronGeometry {
constructor(radius: number, detail: number): IcosahedronBufferGeometry;
}

interface IcosahedronParams extends MeshComponentParams {
export interface IcosahedronParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Importer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Loader,
} from 'three';

interface ImporterParams extends MeshComponentParams {
export interface ImporterParams extends MeshComponentParams {

/**
* Loader.
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Lathe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Vector2
} from 'three';

interface LatheParams extends MeshComponentParams {
export interface LatheParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Line.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Mesh
} from 'three';

interface LineParams extends MeshComponentParams {
export interface LineParams extends MeshComponentParams {

/** Geometry parameters */
geometry: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Octahedron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class OctahedronBufferGeometry extends PolyhedronBufferGeometry {
constructor(radius: number, detail: number);
}

interface OctahedronParams extends MeshComponentParams {
export interface OctahedronParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
4 changes: 2 additions & 2 deletions types/components/meshes/Parametric.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Vector3
} from 'three';

interface ParametricBufferGeometry extends BufferGeometry {
export interface ParametricBufferGeometry extends BufferGeometry {
constructor(func: (u: number, v: number) => Vector3, slices: number, stacks: number): ParametricBufferGeometry;

parameters: {
Expand All @@ -20,7 +20,7 @@ interface ParametricBufferGeometry extends BufferGeometry {
};
}

interface ParametricParams extends MeshComponentParams {
export interface ParametricParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Plane.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
PlaneGeometry
} from 'three';

interface PlaneParams extends MeshComponentParams {
export interface PlaneParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Polyhedron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class PolyhedronBufferGeometry extends BufferGeometry {
};
}

interface PolyhedronParams extends MeshComponentParams {
export interface PolyhedronParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Ring.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
RingBufferGeometry
} from 'three';

interface RingParams extends MeshComponentParams {
export interface RingParams extends MeshComponentParams {

/** Geometry params */
geometry?: {
Expand Down
4 changes: 2 additions & 2 deletions types/components/meshes/Shape.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {
ShapeGeometry
} from 'three';

interface ShapeBufferGeometry extends BufferGeometry {
export interface ShapeBufferGeometry extends BufferGeometry {
constructor(shape: ShapeNative, options?: any): ShapeBufferGeometry;
constructor(shapes: ShapeNative[], options?: any): ShapeBufferGeometry;
}

interface ShapeParams extends MeshComponentParams {
export interface ShapeParams extends MeshComponentParams {

/** Geometry params */
geometry: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Sphere.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Mesh
} from 'three';

interface SphereParams extends MeshComponentParams {
export interface SphereParams extends MeshComponentParams {

/** Geometry parameters */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Tetrahedron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Mesh
} from 'three';

interface TetrahedronParams extends MeshComponentParams {
export interface TetrahedronParams extends MeshComponentParams {

/** Geometry params */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
FontLoader
} from 'three';

interface TextParams extends MeshComponentParams {
export interface TextParams extends MeshComponentParams {

/** Test to display, defaults to Hello World */
text?: string,
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Torus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Mesh
} from 'three';

interface TorusParams extends MeshComponentParams {
export interface TorusParams extends MeshComponentParams {

/** Geometry params */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Torusknot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Mesh
} from 'three';

interface TorusknotParams extends MeshComponentParams {
export interface TorusknotParams extends MeshComponentParams {

/** Geometry params */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/components/meshes/Tube.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TextGeometry
} from 'three';

interface TubeParams extends MeshComponentParams {
export interface TubeParams extends MeshComponentParams {

/** Geometry params */
geometry?: {
Expand Down
2 changes: 1 addition & 1 deletion types/core/CameraComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component} from './Component';
import {CompositionError} from '../core';
import {Object3D} from 'three';

export interface CameraComponentParams {
export export interface CameraComponentParams {
build?: boolean;

position?: {
Expand Down
2 changes: 1 addition & 1 deletion types/core/LightComponent.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Component} from './Component';
import {CompositionError} from './errors';

interface LightComponentParams {
export interface LightComponentParams {
/** Sets whether the component should build automatically. Default is true. */
build?: boolean,

Expand Down
2 changes: 1 addition & 1 deletion types/core/MeshComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Object3D
} from 'three';

interface MeshComponentParams {
export interface MeshComponentParams {
/**
* Sets whether the mesh should build right away after being constructed
* Default is true.
Expand Down
2 changes: 1 addition & 1 deletion types/modules/app/FogModule.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* FogModule properties
*/
interface FogModuleParams {
export interface FogModuleParams {

/**
* Fog color. Example: If set to black, far away objects will be rendered black.
Expand Down
2 changes: 1 addition & 1 deletion types/modules/app/PostProcessorModule.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Material} from 'three';
/**
* PostProcessorModule properties
*/
interface PostProcessorModuleParams {
export interface PostProcessorModuleParams {

/**
* Sets whether to debug or not.
Expand Down
4 changes: 2 additions & 2 deletions types/modules/app/RenderingModule.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Vector2} from 'three';
/**
* RenderingModule properties
*/
interface RenderingModuleParams {
export interface RenderingModuleParams {

/**
* Width of the rendering
Expand Down Expand Up @@ -48,7 +48,7 @@ interface RenderingModuleParams {
renderer?: object;
}

interface RenderingModuleShadowParam {
export interface RenderingModuleShadowParam {

/**
* Sets whether to use shadow.
Expand Down
2 changes: 1 addition & 1 deletion types/modules/app/ResizeModule.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* ResizeModule properties
*/
interface ResizeModuleParams {
export interface ResizeModuleParams {

/**
* Sets whether to auto resize.
Expand Down
Loading

0 comments on commit 2e9bf9b

Please sign in to comment.