Skip to content

Commit 7215881

Browse files
authored
Merge pull request #6937 from hatchling13/fix-matter-collision-events-type
fix type definitions for Matter CollisionActiveEvent | CollisionStartEvent | CollisionEnd
2 parents 9281b8b + d370d38 commit 7215881

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/physics/matter-js/events/COLLISION_ACTIVE_EVENT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @typedef {object} Phaser.Physics.Matter.Events.CollisionActiveEvent
99
*
10-
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.
10+
* @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
1111
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
1212
* @property {any} source - The source object of the event.
1313
* @property {string} name - The name of the event.

src/physics/matter-js/events/COLLISION_END_EVENT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @typedef {object} Phaser.Physics.Matter.Events.CollisionEndEvent
99
*
10-
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.
10+
* @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
1111
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
1212
* @property {any} source - The source object of the event.
1313
* @property {string} name - The name of the event.

src/physics/matter-js/events/COLLISION_START_EVENT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @typedef {object} Phaser.Physics.Matter.Events.CollisionStartEvent
99
*
10-
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.
10+
* @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
1111
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
1212
* @property {any} source - The source object of the event.
1313
* @property {string} name - The name of the event.

0 commit comments

Comments
 (0)