We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66f982b + 7fdb278 commit e43c51fCopy full SHA for e43c51f
types/matter.d.ts
@@ -5251,10 +5251,10 @@ declare namespace MatterJS {
5251
* @method collides
5252
* @param {BodyType} bodyA
5253
* @param {BodyType} bodyB
5254
- * @param {Pairs} [pairs] Optionally reuse collision records from existing pairs.
+ * @param {Pairs | null} [pairs] Optionally reuse collision records from existing pairs, pass null to create new records.
5255
* @return {collision|null} A collision record if detected, otherwise null
5256
*/
5257
- collides (bodyA: BodyType, bodyB: BodyType, pairs: Pairs): any;
+ collides (bodyA: BodyType, bodyB: BodyType, pairs: Pairs | null): any;
5258
5259
}
5260
0 commit comments