Skip to content

Commit 36defd6

Browse files
🤖 dprint fmt
1 parent 2784f7b commit 36defd6

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

types/matter-js/index.d.ts

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ declare namespace Matter {
429429
* Currently only functions inside `Matter.Bodies` provide a utility using this property as a vertices pre-processing option.
430430
*
431431
* Alternatively consider using `Vertices.chamfer` directly on vertices before passing them to a body creation function.
432-
*
433432
*/
434433
chamfer?: IChamfer | null | undefined;
435434
}
@@ -1983,7 +1982,7 @@ declare namespace Matter {
19831982
world: World;
19841983
}
19851984

1986-
export interface IGridDefinition { }
1985+
export interface IGridDefinition {}
19871986

19881987
/**
19891988
* This module has now been replaced by `Matter.Detector`.
@@ -2380,7 +2379,6 @@ declare namespace Matter {
23802379
*/
23812380
wireframeBackground?: string | undefined;
23822381

2383-
23842382
/**
23852383
* A CSS color string to use for stroke when `render.options.wireframes` is enabled.
23862384
* This may be also set to `'transparent'` or equivalent.
@@ -2521,23 +2519,23 @@ declare namespace Matter {
25212519
interface IRenderLookAtObject {
25222520
bounds?: Bounds | undefined;
25232521
position?:
2524-
| {
2525-
x: number;
2526-
y: number;
2527-
}
2528-
| undefined;
2522+
| {
2523+
x: number;
2524+
y: number;
2525+
}
2526+
| undefined;
25292527
min?:
2530-
| {
2531-
x: number;
2532-
y: number;
2533-
}
2534-
| undefined;
2528+
| {
2529+
x: number;
2530+
y: number;
2531+
}
2532+
| undefined;
25352533
max?:
2536-
| {
2537-
x: number;
2538-
y: number;
2539-
}
2540-
| undefined;
2534+
| {
2535+
x: number;
2536+
y: number;
2537+
}
2538+
| undefined;
25412539
}
25422540

25432541
/**
@@ -3960,7 +3958,7 @@ declare namespace Matter {
39603958
* @param {} module The module.
39613959
* @returns {boolean} `true` if `plugin.for` is applicable to `module`, otherwise `false`.
39623960
*/
3963-
static isFor(plugin: Plugin, module: { name?: string | undefined;[_: string]: any }): boolean;
3961+
static isFor(plugin: Plugin, module: { name?: string | undefined; [_: string]: any }): boolean;
39643962

39653963
/**
39663964
* Installs the plugins by calling `plugin.install` on each plugin specified in `plugins` if passed, otherwise `module.uses`.
@@ -3979,7 +3977,7 @@ declare namespace Matter {
39793977
* @param [plugins=module.uses] {} The plugins to install on module (optional, defaults to `module.uses`).
39803978
*/
39813979
static use(
3982-
module: { uses?: Array<Plugin | string> | undefined;[_: string]: any },
3980+
module: { uses?: Array<Plugin | string> | undefined; [_: string]: any },
39833981
plugins: Array<Plugin | string>,
39843982
): void;
39853983

types/matter-js/matter-js-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ var constraint1 = Constraint.create({
138138
World.addConstraint(engine.world, constraint1);
139139

140140
// $ExpectType number
141-
Constraint.currentLength(constraint1)
141+
Constraint.currentLength(constraint1);
142142

143143
// $ExpectType Body | null
144144
var bodyA = constraint1.bodyA;

0 commit comments

Comments
 (0)