Explorar el Código

make is* readonly in d.ts

Yomotsu hace 5 años
padre
commit
a51e4aa5f5
Se han modificado 65 ficheros con 65 adiciones y 65 borrados
  1. 1 1
      examples/jsm/controls/TransformControls.d.ts
  2. 1 1
      examples/jsm/lines/Line2.d.ts
  3. 1 1
      examples/jsm/lines/LineGeometry.d.ts
  4. 1 1
      examples/jsm/lines/LineMaterial.d.ts
  5. 1 1
      examples/jsm/lines/LineSegments2.d.ts
  6. 1 1
      examples/jsm/lines/LineSegmentsGeometry.d.ts
  7. 1 1
      examples/jsm/lines/Wireframe.d.ts
  8. 1 1
      examples/jsm/lines/WireframeGeometry2.d.ts
  9. 1 1
      examples/jsm/nodes/core/Node.d.ts
  10. 1 1
      examples/jsm/nodes/materials/NodeMaterial.d.ts
  11. 1 1
      examples/jsm/objects/Lensflare.d.ts
  12. 1 1
      src/animation/AnimationObjectGroup.d.ts
  13. 1 1
      src/cameras/ArrayCamera.d.ts
  14. 1 1
      src/cameras/Camera.d.ts
  15. 1 1
      src/cameras/OrthographicCamera.d.ts
  16. 1 1
      src/cameras/PerspectiveCamera.d.ts
  17. 1 1
      src/core/BufferAttribute.d.ts
  18. 1 1
      src/core/BufferGeometry.d.ts
  19. 1 1
      src/core/Geometry.d.ts
  20. 1 1
      src/core/InterleavedBufferAttribute.d.ts
  21. 1 1
      src/core/Object3D.d.ts
  22. 1 1
      src/lights/AmbientLight.d.ts
  23. 1 1
      src/lights/AmbientLightProbe.d.ts
  24. 1 1
      src/lights/DirectionalLight.d.ts
  25. 1 1
      src/lights/DirectionalLightShadow.d.ts
  26. 1 1
      src/lights/HemisphereLight.d.ts
  27. 1 1
      src/lights/HemisphereLightProbe.d.ts
  28. 1 1
      src/lights/Light.d.ts
  29. 1 1
      src/lights/LightProbe.d.ts
  30. 1 1
      src/lights/RectAreaLight.d.ts
  31. 1 1
      src/lights/SpotLight.d.ts
  32. 1 1
      src/lights/SpotLightShadow.d.ts
  33. 1 1
      src/materials/LineDashedMaterial.d.ts
  34. 1 1
      src/materials/Material.d.ts
  35. 1 1
      src/materials/PointsMaterial.d.ts
  36. 1 1
      src/materials/SpriteMaterial.d.ts
  37. 1 1
      src/math/Box3.d.ts
  38. 1 1
      src/math/Color.d.ts
  39. 1 1
      src/math/Euler.d.ts
  40. 1 1
      src/math/Plane.d.ts
  41. 1 1
      src/math/Quaternion.d.ts
  42. 1 1
      src/math/SphericalHarmonics3.d.ts
  43. 1 1
      src/math/Vector2.d.ts
  44. 1 1
      src/math/Vector3.d.ts
  45. 1 1
      src/math/Vector4.d.ts
  46. 1 1
      src/objects/Bone.d.ts
  47. 1 1
      src/objects/Group.d.ts
  48. 1 1
      src/objects/InstancedMesh.d.ts
  49. 1 1
      src/objects/LOD.d.ts
  50. 1 1
      src/objects/Line.d.ts
  51. 1 1
      src/objects/LineLoop.d.ts
  52. 1 1
      src/objects/LineSegments.d.ts
  53. 1 1
      src/objects/Mesh.d.ts
  54. 1 1
      src/objects/Points.d.ts
  55. 1 1
      src/objects/SkinnedMesh.d.ts
  56. 1 1
      src/objects/Sprite.d.ts
  57. 1 1
      src/renderers/WebGLMultisampleRenderTarget.d.ts
  58. 1 1
      src/renderers/WebGLMultiviewRenderTarget.d.ts
  59. 1 1
      src/renderers/WebGLRenderTarget.d.ts
  60. 1 1
      src/renderers/webgl/WebGLCapabilities.d.ts
  61. 1 1
      src/scenes/Fog.d.ts
  62. 1 1
      src/scenes/FogExp2.d.ts
  63. 1 1
      src/scenes/Scene.d.ts
  64. 1 1
      src/textures/Texture.d.ts
  65. 1 1
      src/textures/VideoTexture.d.ts

+ 1 - 1
examples/jsm/controls/TransformControls.d.ts

@@ -25,7 +25,7 @@ export class TransformControls extends Object3D {
 	showX: boolean;
 	showY: boolean;
 	showZ: boolean;
-	isTransformControls: boolean;
+	readonly isTransformControls: true;
 	mouseButtons: {
 		LEFT: MOUSE;
 		MIDDLE: MOUSE;

+ 1 - 1
examples/jsm/lines/Line2.d.ts

@@ -5,6 +5,6 @@ import { LineMaterial } from './LineMaterial';
 export class Line2 extends LineSegments2 {
 
 	constructor( geometry?: LineGeometry, material?: LineMaterial );
-	isLine2: boolean;
+	readonly isLine2: true;
 
 }

+ 1 - 1
examples/jsm/lines/LineGeometry.d.ts

@@ -7,7 +7,7 @@ import { LineSegmentsGeometry } from './LineSegmentsGeometry';
 export class LineGeometry extends LineSegmentsGeometry {
 
 	constructor();
-	isLineGeometry: boolean;
+	readonly isLineGeometry: true;
 
 	fromLine( line: Line ): this;
 

+ 1 - 1
examples/jsm/lines/LineMaterial.d.ts

@@ -23,7 +23,7 @@ export class LineMaterial extends ShaderMaterial {
 	dashScale: number;
 	dashSize: number;
 	gapSize: number;
-	isLineMaterial: boolean;
+	readonly isLineMaterial: true;
 	linewidth: number;
 	resolution: Vector2;
 

+ 1 - 1
examples/jsm/lines/LineSegments2.d.ts

@@ -8,7 +8,7 @@ import { LineSegmentsGeometry } from './LineSegmentsGeometry';
 export class LineSegments2 extends Mesh {
 
 	constructor( geometry?: LineSegmentsGeometry, material?: LineMaterial );
-	isLineSegments2: boolean;
+	readonly isLineSegments2: true;
 
 	computeLineDistances(): this;
 

+ 1 - 1
examples/jsm/lines/LineSegmentsGeometry.d.ts

@@ -10,7 +10,7 @@ import {
 export class LineSegmentsGeometry extends InstancedBufferGeometry {
 
 	constructor();
-	isLineSegmentsGeometry: boolean;
+	readonly isLineSegmentsGeometry: true;
 
 	applyMatrix( matrix: Matrix4 ): this;
 	computeBoundingBox(): void;

+ 1 - 1
examples/jsm/lines/Wireframe.d.ts

@@ -8,7 +8,7 @@ import { LineSegmentsGeometry } from './LineSegmentsGeometry';
 export class Wireframe extends Mesh {
 
 	constructor( geometry?: LineSegmentsGeometry, material?: LineMaterial );
-	isWireframe: boolean;
+	readonly isWireframe: true;
 
 	computeLineDistances(): this;
 

+ 1 - 1
examples/jsm/lines/WireframeGeometry2.d.ts

@@ -8,6 +8,6 @@ import { LineSegmentsGeometry } from './LineSegmentsGeometry';
 export class WireframeGeometry2 extends LineSegmentsGeometry {
 
 	constructor( geometry: Geometry | BufferGeometry );
-	isWireframeGeometry2: boolean;
+	readonly sWireframeGeometry2: boolean;
 
 }

+ 1 - 1
examples/jsm/nodes/core/Node.d.ts

@@ -8,7 +8,7 @@ export class Node {
 	name: string;
 	type: string | undefined;
 	userData: object;
-	isNode: boolean;
+	readonly isNode: true;
 	frameId: number | undefined;
 
 	analyze( builder: NodeBuilder, settings?: object ): void;

+ 1 - 1
examples/jsm/nodes/materials/NodeMaterial.d.ts

@@ -22,7 +22,7 @@ export class NodeMaterial extends ShaderMaterial {
 
 	updaters: object[];
 
-	isNodeMaterial: boolean;
+	readonly isNodeMaterial: true;
 	properties: object;
 
 	updateFrame( frame: NodeFrame ): void;

+ 1 - 1
examples/jsm/objects/Lensflare.d.ts

@@ -17,7 +17,7 @@ export class LensflareElement {
 export class Lensflare extends Mesh {
 
 	constructor();
-	isLensflare: boolean;
+	readonly isLensflare: true;
 
 	addElement( element: LensflareElement ): void;
 	dispose(): void;

+ 1 - 1
src/animation/AnimationObjectGroup.d.ts

@@ -10,7 +10,7 @@ export class AnimationObjectGroup {
 			inUse: number;
 		};
 	};
-	isAnimationObjectGroup: boolean;
+	readonly isAnimationObjectGroup: true;
 
 	add( ...args: any[] ): void;
 	remove( ...args: any[] ): void;

+ 1 - 1
src/cameras/ArrayCamera.d.ts

@@ -5,6 +5,6 @@ export class ArrayCamera extends PerspectiveCamera {
 	constructor( cameras?: PerspectiveCamera[] );
 
 	cameras: PerspectiveCamera[];
-	isArrayCamera: true;
+	readonly isArrayCamera: true;
 
 }

+ 1 - 1
src/cameras/Camera.d.ts

@@ -29,7 +29,7 @@ export class Camera extends Object3D {
 	 */
 	projectionMatrixInverse: Matrix4;
 
-	isCamera: true;
+	readonly isCamera: true;
 
 	getWorldDirection( target: Vector3 ): Vector3;
 

+ 1 - 1
src/cameras/OrthographicCamera.d.ts

@@ -30,7 +30,7 @@ export class OrthographicCamera extends Camera {
 
 	type: 'OrthographicCamera';
 
-	isOrthographicCamera: true;
+	readonly isOrthographicCamera: true;
 
 	zoom: number;
 	view: null | {

+ 1 - 1
src/cameras/PerspectiveCamera.d.ts

@@ -17,7 +17,7 @@ export class PerspectiveCamera extends Camera {
 
 	type: 'PerspectiveCamera';
 
-	isPerspectiveCamera: true;
+	readonly isPerspectiveCamera: true;
 
 	zoom: number;
 

+ 1 - 1
src/core/BufferAttribute.d.ts

@@ -20,7 +20,7 @@ export class BufferAttribute {
 
 	set needsUpdate( value: boolean );
 
-	isBufferAttribute: true;
+	readonly isBufferAttribute: true;
 
 	onUploadCallback: () => void;
 	onUpload( callback: () => void ): this;

+ 1 - 1
src/core/BufferGeometry.d.ts

@@ -46,7 +46,7 @@ export class BufferGeometry extends EventDispatcher {
 	boundingSphere: Sphere;
 	drawRange: { start: number; count: number };
 	userData: {[key: string]: any};
-	isBufferGeometry: boolean;
+	readonly isBufferGeometry: true;
 
 	getIndex(): BufferAttribute | null;
 	setIndex( index: BufferAttribute | number[] | null ): void;

+ 1 - 1
src/core/Geometry.d.ts

@@ -50,7 +50,7 @@ export class Geometry extends EventDispatcher {
 
 	uuid: string;
 
-	isGeometry: boolean;
+	readonly isGeometry: true;
 
 	/**
 	 * Name for this geometry. Default is an empty string.

+ 1 - 1
src/core/InterleavedBufferAttribute.d.ts

@@ -20,7 +20,7 @@ export class InterleavedBufferAttribute {
 	get count(): number;
 	get array(): ArrayLike<number>;
 
-	isInterleavedBufferAttribute: true;
+	readonly isInterleavedBufferAttribute: true;
 
 	applyMatrix4( m: Matrix4 ): this;
 	getX( index: number ): number;

+ 1 - 1
src/core/Object3D.d.ts

@@ -148,7 +148,7 @@ export class Object3D extends EventDispatcher {
 	 * Used to check whether this or derived classes are Object3Ds. Default is true.
 	 * You should not change this, as it is used internally for optimisation.
 	 */
-	isObject3D: true;
+	readonly isObject3D: true;
 
 	/**
 	 * Calls before rendering object

+ 1 - 1
src/lights/AmbientLight.d.ts

@@ -15,6 +15,6 @@ export class AmbientLight extends Light {
 	constructor( color?: Color | string | number, intensity?: number );
 
 	castShadow: boolean;
-	isAmbientLight: boolean;
+	readonly isAmbientLight: true;
 
 }

+ 1 - 1
src/lights/AmbientLightProbe.d.ts

@@ -5,6 +5,6 @@ export class AmbientLightProbe extends LightProbe {
 
 	constructor( color?: Color | string | number, intensity?: number );
 
-	isAmbientLightProbe: true;
+	readonly isAmbientLightProbe: true;
 
 }

+ 1 - 1
src/lights/DirectionalLight.d.ts

@@ -30,6 +30,6 @@ export class DirectionalLight extends Light {
 	intensity: number;
 
 	shadow: DirectionalLightShadow;
-	isDirectionalLight: boolean;
+	readonly isDirectionalLight: true;
 
 }

+ 1 - 1
src/lights/DirectionalLightShadow.d.ts

@@ -4,6 +4,6 @@ import { LightShadow } from './LightShadow';
 export class DirectionalLightShadow extends LightShadow {
 
 	camera: OrthographicCamera;
-	isDirectionalLightShadow: boolean;
+	readonly isDirectionalLightShadow: true;
 
 }

+ 1 - 1
src/lights/HemisphereLight.d.ts

@@ -12,6 +12,6 @@ export class HemisphereLight extends Light {
 	skyColor: Color;
 	groundColor: Color;
 	intensity: number;
-	isHemisphereLight: boolean;
+	readonly isHemisphereLight: true;
 
 }

+ 1 - 1
src/lights/HemisphereLightProbe.d.ts

@@ -5,6 +5,6 @@ export class HemisphereLightProbe extends LightProbe {
 
 	constructor( skyColor?: Color | string | number, groundColor?: Color | string | number, intensity?: number );
 
-	isHemisphereLightProbe: true;
+	readonly isHemisphereLightProbe: true;
 
 }

+ 1 - 1
src/lights/Light.d.ts

@@ -13,7 +13,7 @@ export class Light extends Object3D {
 
 	color: Color;
 	intensity: number;
-	isLight: true;
+	readonly isLight: true;
 	receiveShadow: boolean;
 	shadow: LightShadow;
 	/**

+ 1 - 1
src/lights/LightProbe.d.ts

@@ -5,7 +5,7 @@ export class LightProbe extends Light {
 
 	constructor( sh?: SphericalHarmonics3, intensity?: number );
 
-	isLightProbe: true;
+	readonly isLightProbe: true;
 	sh: SphericalHarmonics3;
 
 }

+ 1 - 1
src/lights/RectAreaLight.d.ts

@@ -14,6 +14,6 @@ export class RectAreaLight extends Light {
 	width: number;
 	height: number;
 	intensity: number;
-	isRectAreaLight: boolean;
+	readonly isRectAreaLight: true;
 
 }

+ 1 - 1
src/lights/SpotLight.d.ts

@@ -51,6 +51,6 @@ export class SpotLight extends Light {
 	shadow: SpotLightShadow;
 	power: number;
 	penumbra: number;
-	isSpotLight: boolean;
+	readonly isSpotLight: true;
 
 }

+ 1 - 1
src/lights/SpotLightShadow.d.ts

@@ -4,6 +4,6 @@ import { LightShadow } from './LightShadow';
 export class SpotLightShadow extends LightShadow {
 
 	camera: PerspectiveCamera;
-	isSpotLightShadow: true;
+	readonly isSpotLightShadow: true;
 
 }

+ 1 - 1
src/materials/LineDashedMaterial.d.ts

@@ -17,7 +17,7 @@ export class LineDashedMaterial extends LineBasicMaterial {
 	scale: number;
 	dashSize: number;
 	gapSize: number;
-	isLineDashedMaterial: boolean;
+	readonly isLineDashedMaterial: true;
 
 	setValues( parameters: LineDashedMaterialParameters ): void;
 

+ 1 - 1
src/materials/Material.d.ts

@@ -198,7 +198,7 @@ export class Material extends EventDispatcher {
 	 * Used to check whether this or derived classes are materials. Default is true.
 	 * You should not change this, as it used internally for optimisation.
 	 */
-	isMaterial: boolean;
+	readonly isMaterial: true;
 
 	/**
 	 * Material name. Default is an empty string.

+ 1 - 1
src/materials/PointsMaterial.d.ts

@@ -11,7 +11,7 @@ export class MultiMaterial extends Material {
 
 	constructor( materials?: Material[] );
 
-	isMultiMaterial: true;
+	readonly isMultiMaterial: true;
 
 	materials: Material[];
 

+ 1 - 1
src/materials/SpriteMaterial.d.ts

@@ -19,7 +19,7 @@ export class SpriteMaterial extends Material {
 	alphaMap: Texture | null;
 	rotation: number;
 	sizeAttenuation: boolean;
-	isSpriteMaterial: true;
+	readonly isSpriteMaterial: true;
 
 	setValues( parameters: SpriteMaterialParameters ): void;
 	copy( source: SpriteMaterial ): this;

+ 1 - 1
src/math/Box3.d.ts

@@ -11,7 +11,7 @@ export class Box3 {
 
 	max: Vector3;
 	min: Vector3;
-	isBox3: boolean;
+	readonly isBox3: true;
 
 	set( min: Vector3, max: Vector3 ): this;
 	setFromArray( array: ArrayLike<number> ): this;

+ 1 - 1
src/math/Color.d.ts

@@ -21,7 +21,7 @@ export class Color {
 	constructor( color?: Color | string | number );
 	constructor( r: number, g: number, b: number );
 
-	isColor: boolean;
+	readonly isColor: true;
 
 	/**
 	 * Red channel value between 0 and 1. Default is 1.

+ 1 - 1
src/math/Euler.d.ts

@@ -10,7 +10,7 @@ export class Euler {
 	y: number;
 	z: number;
 	order: string;
-	isEuler: boolean;
+	readonly isEuler: true;
 
 	_onChangeCallback: Function;
 

+ 1 - 1
src/math/Plane.d.ts

@@ -11,7 +11,7 @@ export class Plane {
 
 	normal: Vector3;
 	constant: number;
-	isPlane: boolean;
+	readonly isPlane: true;
 
 	set( normal: Vector3, constant: number ): Plane;
 	setComponents( x: number, y: number, z: number, w: number ): Plane;

+ 1 - 1
src/math/Quaternion.d.ts

@@ -25,7 +25,7 @@ export class Quaternion {
 	y: number;
 	z: number;
 	w: number;
-	isQuaternion: boolean;
+	readonly isQuaternion: true;
 
 	/**
 	 * Sets values of this quaternion.

+ 1 - 1
src/math/SphericalHarmonics3.d.ts

@@ -5,7 +5,7 @@ export class SphericalHarmonics3 {
 	constructor();
 
 	coefficients: Vector3[];
-	isSphericalHarmonics3: boolean;
+	readonly isSphericalHarmonics3: true;
 
 	set ( coefficients: Vector3[] ): SphericalHarmonics3;
 	zero(): SphericalHarmonics3;

+ 1 - 1
src/math/Vector2.d.ts

@@ -138,7 +138,7 @@ export class Vector2 implements Vector {
 	y: number;
 	width: number;
 	height: number;
-	isVector2: true;
+	readonly isVector2: true;
 
 	/**
 	 * Sets value of this vector.

+ 1 - 1
src/math/Vector3.d.ts

@@ -27,7 +27,7 @@ export class Vector3 implements Vector {
 	x: number;
 	y: number;
 	z: number;
-	isVector3: true;
+	readonly isVector3: true;
 
 	/**
 	 * Sets value of this vector.

+ 1 - 1
src/math/Vector4.d.ts

@@ -19,7 +19,7 @@ export class Vector4 implements Vector {
 	w: number;
 	width: number;
 	height: number;
-	isVector4: true;
+	readonly isVector4: true;
 
 	/**
 	 * Sets value of this vector.

+ 1 - 1
src/objects/Bone.d.ts

@@ -5,7 +5,7 @@ import { Object3D } from './../core/Object3D';
 export class Bone extends Object3D {
 
 	constructor();
-	isBone: true;
+	readonly isBone: true;
 	type: 'Bone';
 
 }

+ 1 - 1
src/objects/Group.d.ts

@@ -4,6 +4,6 @@ export class Group extends Object3D {
 
 	constructor();
 	type: 'Group';
-	isGroup: true;
+	readonly isGroup: true;
 
 }

+ 1 - 1
src/objects/InstancedMesh.d.ts

@@ -15,7 +15,7 @@ export class InstancedMesh extends Mesh {
 
 	count: number;
 	instanceMatrix: BufferAttribute;
-	isInstancedMesh: true;
+	readonly isInstancedMesh: true;
 
 	getMatrixAt( index: number, matrix: Matrix4 ): void;
 	setMatrixAt( index: number, matrix: Matrix4 ): void;

+ 1 - 1
src/objects/LOD.d.ts

@@ -11,7 +11,7 @@ export class LOD extends Object3D {
 
 	levels: { distance: number; object: Object3D }[];
 	autoUpdate: boolean;
-	isLOD: boolean;
+	readonly isLOD: true;
 
 	addLevel( object: Object3D, distance?: number ): this;
 	getObjectForDistance( distance: number ): Object3D | null;

+ 1 - 1
src/objects/Line.d.ts

@@ -17,7 +17,7 @@ export class Line extends Object3D {
 	material: Material | Material[];
 
 	type: 'Line' | 'LineLoop' | 'LineSegments';
-	isLine: true;
+	readonly isLine: true;
 
 	computeLineDistances(): this;
 	raycast( raycaster: Raycaster, intersects: Intersection[] ): void;

+ 1 - 1
src/objects/LineLoop.d.ts

@@ -11,6 +11,6 @@ export class LineLoop extends Line {
 	);
 
 	type: 'LineLoop';
-	isLineLoop: true;
+	readonly isLineLoop: true;
 
 }

+ 1 - 1
src/objects/LineSegments.d.ts

@@ -21,6 +21,6 @@ export class LineSegments extends Line {
 	);
 
 	type: 'LineSegments';
-	isLineSegments: true;
+	readonly isLineSegments: true;
 
 }

+ 1 - 1
src/objects/Mesh.d.ts

@@ -16,7 +16,7 @@ export class Mesh extends Object3D {
 	material: Material | Material[];
 	morphTargetInfluences?: number[];
 	morphTargetDictionary?: { [key: string]: number };
-	isMesh: true;
+	readonly isMesh: true;
 	type: string;
 
 	updateMorphTargets(): void;

+ 1 - 1
src/objects/Points.d.ts

@@ -24,7 +24,7 @@ export class Points extends Object3D {
 	type: 'Points';
 	morphTargetInfluences?: number[];
 	morphTargetDictionary?: { [key: string]: number };
-	isPoints: true;
+	readonly isPoints: true;
 
 	/**
 	 * An instance of Geometry or BufferGeometry, where each vertex designates the position of a particle in the system.

+ 1 - 1
src/objects/SkinnedMesh.d.ts

@@ -17,7 +17,7 @@ export class SkinnedMesh extends Mesh {
 	bindMatrix: Matrix4;
 	bindMatrixInverse: Matrix4;
 	skeleton: Skeleton;
-	isSkinnedMesh: boolean;
+	readonly isSkinnedMesh: true;
 
 	bind( skeleton: Skeleton, bindMatrix?: Matrix4 ): void;
 	pose(): void;

+ 1 - 1
src/objects/Sprite.d.ts

@@ -10,7 +10,7 @@ export class Sprite extends Object3D {
 	constructor( material?: SpriteMaterial );
 
 	type: 'Sprite';
-	isSprite: true;
+	readonly isSprite: true;
 
 	geometry: BufferGeometry;
 	material: SpriteMaterial;

+ 1 - 1
src/renderers/WebGLMultisampleRenderTarget.d.ts

@@ -11,6 +11,6 @@ export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
 		options?: WebGLRenderTargetOptions
 	);
 
-	isWebGLMultisampleRenderTarget: boolean;
+	readonly isWebGLMultisampleRenderTarget: true;
 
 }

+ 1 - 1
src/renderers/WebGLMultiviewRenderTarget.d.ts

@@ -12,7 +12,7 @@ export class WebGLMultiviewRenderTarget extends WebGLRenderTarget {
 		options?: WebGLRenderTargetOptions
 	);
 
-	isWebGLMultiviewRenderTarget: boolean;
+	readonly isWebGLMultiviewRenderTarget: true;
 	setNumViews( numViews: number ): this;
 
 }

+ 1 - 1
src/renderers/WebGLRenderTarget.d.ts

@@ -36,7 +36,7 @@ export class WebGLRenderTarget extends EventDispatcher {
 	depthBuffer: boolean;
 	stencilBuffer: boolean;
 	depthTexture: DepthTexture;
-	isWebGLRenderTarget: boolean;
+	readonly isWebGLRenderTarget: true;
 
 	/**
 	 * @deprecated Use {@link Texture#wrapS texture.wrapS} instead.

+ 1 - 1
src/renderers/webgl/WebGLCapabilities.d.ts

@@ -11,7 +11,7 @@ export class WebGLCapabilities {
 		parameters: WebGLCapabilitiesParameters
 	);
 
-	isWebGL2: boolean;
+	readonly isWebGL2: true;
 	precision: string;
 	logarithmicDepthBuffer: boolean;
 	maxTextures: number;

+ 1 - 1
src/scenes/Fog.d.ts

@@ -32,7 +32,7 @@ export class Fog implements IFog {
 	 */
 	far: number;
 
-	isFog: boolean;
+	readonly isFog: true;
 
 	clone(): this;
 	toJSON(): any;

+ 1 - 1
src/scenes/FogExp2.d.ts

@@ -16,7 +16,7 @@ export class FogExp2 implements IFog {
 	 */
 	density: number;
 
-	isFogExp2: boolean;
+	readonly isFogExp2: true;
 
 	clone(): this;
 	toJSON(): any;

+ 1 - 1
src/scenes/Scene.d.ts

@@ -27,7 +27,7 @@ export class Scene extends Object3D {
 	background: null | Color | Texture;
 	environment: null | Texture;
 
-	isScene: boolean;
+	readonly isScene: true;
 
 	toJSON( meta?: any ): any;
 	dispose(): void;

+ 1 - 1
src/textures/Texture.d.ts

@@ -54,7 +54,7 @@ export class Texture extends EventDispatcher {
 	encoding: TextureEncoding;
 	version: number;
 	needsUpdate: boolean;
-	isTexture: boolean;
+	readonly isTexture: true;
 
 	onUpdate: () => void;
 	static DEFAULT_IMAGE: any;

+ 1 - 1
src/textures/VideoTexture.d.ts

@@ -21,6 +21,6 @@ export class VideoTexture extends Texture {
 		anisotropy?: number
 	);
 
-	isVideoTexture: boolean;
+	readonly isVideoTexture: true;
 
 }