Explorar o código

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

Johannes Deml %!s(int64=6) %!d(string=hai) anos
pai
achega
dfd921c2d3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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.