Skip to content

Commit ef26487

Browse files
jregeimbaluniqueiniquity
authored andcommitted
Fix return value of Matter.Vertices.create() (DefinitelyTyped#41749)
Matter.Vertices.create returns an array of vectors: ``` EG: body.vertices = Vertices.create(vertices, this.body); ```
1 parent 2b48897 commit ef26487

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/matter-js/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2963,8 +2963,9 @@ declare namespace Matter {
29632963
* @method create
29642964
* @param {vector[]} points
29652965
* @param {body} body
2966+
* @return {vertices} vertices
29662967
*/
2967-
static create(points: Array<Vector>, body: Body): void;
2968+
static create(points: Array<Vector>, body: Body): Array<Vector>;
29682969

29692970
/**
29702971
* Parses a string containing ordered x y pairs separated by spaces (and optionally commas),

0 commit comments

Comments
 (0)