diff --git a/types/p2/index.d.ts b/types/p2/index.d.ts index 5eb63804ba..40cee3c1d6 100644 --- a/types/p2/index.d.ts +++ b/types/p2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for p2.js v0.7.1 // Project: https://github.com/schteppe/p2.js/ -// Definitions by: Clark Stevenson , Janne Ramstedt +// Definitions by: Clark Stevenson , Janne Ramstedt , Alex Brown // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = p2; @@ -161,7 +161,7 @@ declare namespace p2 { export class DistanceConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: DistanceConstraintOptions); + constructor(bodyA: Body, bodyB: Body, options?: DistanceConstraintOptions); localAnchorA: [number, number]; localAnchorB: [number, number]; @@ -210,7 +210,7 @@ declare namespace p2 { export class LockConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: LockConstraintOptions); + constructor(bodyA: Body, bodyB: Body, options?: LockConstraintOptions); setMaxForce(force: number): void; getMaxForce(): number; @@ -267,7 +267,7 @@ declare namespace p2 { export class RevoluteConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, type: number, options?: RevoluteConstraintOptions); + constructor(bodyA: Body, bodyB: Body, options?: RevoluteConstraintOptions); angle: number; lowerLimitEnabled: boolean; @@ -308,7 +308,7 @@ declare namespace p2 { constructor(bodyA: Body, bodyB: Body, type: number, options?: ConstraintOptions); type: number; - equeations: Equation[]; + equations: Equation[]; bodyA: Body; bodyB: Body; collideConnected: boolean;