Skip to content

Commit 7fdb278

Browse files
committed
Updated type of param in MatterPhysics.collision.collides to support null.
1 parent c62baca commit 7fdb278

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)