소스 검색

TS: Fix toArray method: Add optional parameters array and offset

Johannes Deml 6 년 전
부모
커밋
dfd921c2d3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/math/Matrix4.d.ts

+ 2 - 1
src/math/Matrix4.d.ts

@@ -227,7 +227,8 @@ export class Matrix4 implements Matrix {
 	): Matrix4;
 	equals( matrix: Matrix4 ): boolean;
 	fromArray( array: number[], offset?: number ): Matrix4;
-	toArray(): number[];
+
+	toArray( array?: number[], offset?: number ): number[];
 
 	/**
 	 * @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.