Skip to content

Commit e43c51f

Browse files
authored
Merge pull request #7145 from ixonstater/null-pair-type-fix
Updated type of param in MatterPhysics.collision.collides to support null.
2 parents 66f982b + 7fdb278 commit e43c51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/matter.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5251,10 +5251,10 @@ declare namespace MatterJS {
52515251
* @method collides
52525252
* @param {BodyType} bodyA
52535253
* @param {BodyType} bodyB
5254-
* @param {Pairs} [pairs] Optionally reuse collision records from existing pairs.
5254+
* @param {Pairs | null} [pairs] Optionally reuse collision records from existing pairs, pass null to create new records.
52555255
* @return {collision|null} A collision record if detected, otherwise null
52565256
*/
5257-
collides (bodyA: BodyType, bodyB: BodyType, pairs: Pairs): any;
5257+
collides (bodyA: BodyType, bodyB: BodyType, pairs: Pairs | null): any;
52585258

52595259
}
52605260
}

0 commit comments

Comments
 (0)