diff --git a/types/three/src/math/Matrix3.d.ts b/types/three/src/math/Matrix3.d.ts index 4fcb48edc..0b593fcb8 100644 --- a/types/three/src/math/Matrix3.d.ts +++ b/types/three/src/math/Matrix3.d.ts @@ -170,10 +170,15 @@ export class Matrix3 { /** * Writes the elements of this matrix to an array in * {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format. - * @param array (optional) array to store the resulting vector in. If not given a new array will be created. + */ + toArray(): Matrix3Tuple; + /** + * Writes the elements of this matrix to an array in + * {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format. + * @param array array to store the resulting vector in. If not given a new array will be created. * @param offset (optional) offset in the array at which to put the result. */ - toArray = number[]>(array?: TArray, offset?: number): TArray; + toArray>(array: TArray, offset?: number): TArray; clone(): this; } diff --git a/types/three/src/math/Matrix4.d.ts b/types/three/src/math/Matrix4.d.ts index e047a87cd..9ef2a9ceb 100644 --- a/types/three/src/math/Matrix4.d.ts +++ b/types/three/src/math/Matrix4.d.ts @@ -272,8 +272,13 @@ export class Matrix4 { /** * Writes the elements of this matrix to an array in * {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format. - * @param array (optional) array to store the resulting vector in. + */ + toArray(): Matrix4Tuple; + /** + * Writes the elements of this matrix to an array in + * {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format. + * @param array array to store the resulting vector in. * @param offset (optional) offset in the array at which to put the result. */ - toArray = number[]>(array?: TArray, offset?: number): TArray; + toArray>(array: TArray, offset?: number): TArray; }