Skip to content

Conversation

@Antony74
Copy link
Contributor

@Antony74 Antony74 commented Nov 3, 2020

Added additional type information to Vector and Matrix toArray() methods. This allows code involving the spread operator for function parameters (which works as expected) to compile in TypeScript.

Related issues:

Fixed #19303.

Description

This is the solution - defining tuples for brevity - was proposed by others and well recieved in my original bug report, so I thought I should write these definintions.

…oArray() methods. This allows code involving the spread operator for function parameters (which works as expected) to compile in TypeScript.
@Mugen87 Mugen87 assigned Mugen87 and unassigned Mugen87 Nov 4, 2020
@mrdoob mrdoob added this to the r123 milestone Nov 13, 2020
@mrdoob mrdoob merged commit 44ea080 into mrdoob:dev Nov 13, 2020
@mrdoob
Copy link
Owner

mrdoob commented Nov 13, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS: Vector3 interface not descriptive enough to support this valid usage

4 participants