Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions types/three/src/textures/CubeDepthTexture.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import {
TextureDataType,
Wrapping,
} from "../constants.js";
import { DepthTextureImageData } from "./DepthTexture.js";
import { Texture } from "./Texture.js";
import { DepthTexture, DepthTextureImageData } from "./DepthTexture.js";

declare class CubeDepthTexture extends Texture<CubeDepthTextureImageData> {
declare class CubeDepthTexture extends DepthTexture<CubeDepthTextureImageData> {
readonly isCubeDepthTexture: true;
readonly isCubeTexture: true;

Expand Down
2 changes: 1 addition & 1 deletion types/three/src/textures/DepthTexture.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Texture } from "./Texture.js";
* @see {@link https://threejs.org/docs/index.html#api/en/textures/DepthTexture | Official Documentation}
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/textures/DepthTexture.js | Source}
*/
export class DepthTexture extends Texture<DepthTextureImageData> {
export class DepthTexture<TImage = DepthTextureImageData> extends Texture<TImage> {
/**
* Create a new instance of {@link DepthTexture}
* @param width Width of the texture.
Expand Down
1 change: 1 addition & 0 deletions types/three/test/unit/src/textures/CubeDepthTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import * as THREE from "three";
const texture = new THREE.CubeDepthTexture(512);
texture.isCubeDepthTexture; // $ExpectType true
texture.isCubeTexture; // $ExpectType true
texture.isDepthTexture; // $ExpectType true
texture.images; // $ExpectType CubeDepthTextureImageData
Loading