Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Mar 12, 2024
1 parent 6de9126 commit c2c482f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/dynamics/joint/DistanceJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export interface DistanceJointDef extends JointDef, DistanceJointOpt {
*/
localAnchorB: Vec2Value;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics/joint/FrictionJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export interface FrictionJointDef extends JointDef, FrictionJointOpt {
*/
localAnchorB: Vec2Value;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics/joint/PrismaticJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export interface PrismaticJointDef extends JointDef, PrismaticJointOpt {
*/
referenceAngle: number;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics/joint/RevoluteJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export interface RevoluteJointDef extends JointDef, RevoluteJointOpt {
*/
referenceAngle: number;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics/joint/WeldJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export interface WeldJointDef extends JointDef, WeldJointOpt {
*/
localAnchorB: Vec2Value;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down
4 changes: 2 additions & 2 deletions src/dynamics/joint/WheelJoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export interface WheelJointDef extends JointDef, WheelJointOpt {
/** @internal renamed to localAxisA */
localAxis?: Vec2Value;

/** @internal */ anchorA: Vec2Value;
/** @internal */ anchorB: Vec2Value;
/** @internal */ anchorA?: Vec2Value;
/** @internal */ anchorB?: Vec2Value;
}

/** @internal */ const DEFAULTS = {
Expand Down

0 comments on commit c2c482f

Please sign in to comment.