mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
declared type for onCollideWith
This commit is contained in:
parent
929267011a
commit
f17e1df7f4
1 changed files with 8 additions and 8 deletions
16
types/matter.d.ts
vendored
16
types/matter.d.ts
vendored
|
@ -469,13 +469,13 @@ declare namespace MatterJS {
|
|||
onCollideActiveCallback?: Function;
|
||||
|
||||
/**
|
||||
* A collision callback dictionary used by the `Body.setOnCollideWith` function.
|
||||
* A collision callback dictionary _(body id -> function)_ used by the `Body.setOnCollideWith` function.
|
||||
*
|
||||
* @property onCollideWith
|
||||
* @type object
|
||||
* @default null
|
||||
* @type {Object.<number, Function>}
|
||||
* @default {}
|
||||
*/
|
||||
onCollideWith?: any;
|
||||
onCollideWith?: Record<number, Function>;
|
||||
|
||||
}
|
||||
|
||||
|
@ -1953,13 +1953,13 @@ declare namespace MatterJS {
|
|||
onCollideActiveCallback?: Function;
|
||||
|
||||
/**
|
||||
* A collision callback dictionary used by the `Body.setOnCollideWith` function.
|
||||
* A collision callback dictionary _(body id -> function)_ used by the `Body.setOnCollideWith` function.
|
||||
*
|
||||
* @property onCollideWith
|
||||
* @type object
|
||||
* @default null
|
||||
* @type {Object.<number, Function>}
|
||||
* @default {}
|
||||
*/
|
||||
onCollideWith?: any;
|
||||
onCollideWith?: Record<number, Function>;
|
||||
|
||||
/**
|
||||
* Sets the onCollideWith callback.
|
||||
|
|
Loading…
Reference in a new issue