Browse Source

Merge pull request #20267 from giulioz/dev

Fixed line typings
Mr.doob 4 years ago
parent
commit
28c27c3a48
2 changed files with 5 additions and 2 deletions
  1. 2 2
      examples/jsm/lines/Line2.d.ts
  2. 3 0
      examples/jsm/lines/LineSegments2.d.ts

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

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

+ 3 - 0
examples/jsm/lines/LineSegments2.d.ts

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