diff --git a/types/three/examples/jsm/geometries/DecalGeometry.d.ts b/types/three/examples/jsm/geometries/DecalGeometry.d.ts index 8b9ca786c..b85a2b102 100644 --- a/types/three/examples/jsm/geometries/DecalGeometry.d.ts +++ b/types/three/examples/jsm/geometries/DecalGeometry.d.ts @@ -1,10 +1,16 @@ import { BufferGeometry, Euler, Mesh, Vector3 } from "three"; -export class DecalGeometry extends BufferGeometry { +declare class DecalGeometry extends BufferGeometry { constructor(mesh: Mesh, position: Vector3, orientation: Euler, size: Vector3); } -export class DecalVertex { - constructor(position: Vector3, normal: Vector3); +declare class DecalVertex { + position: Vector3; + normal: Vector3 | null; + + constructor(position: Vector3, normal?: Vector3 | null); + clone(): this; } + +export { DecalGeometry, DecalVertex };