Skip to content

Commit

Permalink
change box2d-jsb.d.ts for npm run test. (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkaikk authored Jan 9, 2025
1 parent 7cb7207 commit 2fec9c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions emscripten/box2d/box2d-jsb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ declare namespace b2 {
IDENTITY: b2Rot;
}
export class Transform {
static MulXV(_xf: Transform, center: Vec2, _tmp_vec2: Vec2): any;
static MulXV(_xf: any, center: any, _tmp_vec2: any): any;
constructor();
p: Vec2;
q: b2Rot;
Expand Down Expand Up @@ -193,7 +193,7 @@ declare namespace b2 {
}

class ContactListener {
init(param: any);
initWithThis(param: any);
constructor();
BeginContact(contact: Contact): void;
EndContact(contact: Contact): void;
Expand Down Expand Up @@ -285,7 +285,7 @@ declare namespace b2 {

IsTouching(): boolean ;

SetEnabled(flag: boolean);
SetEnabled(flag: any);

IsEnabled();

Expand All @@ -307,27 +307,27 @@ declare namespace b2 {

FlagForFiltering(): void;

SetFriction(friction: number): void;
SetFriction(friction: any): void;

GetFriction(): number;

ResetFriction(): void;

SetRestitution(restitution: number): void;
SetRestitution(restitution: any): void;

GetRestitution(): number;

ResetRestitution(): void;

SetTangentSpeed(speed: number): void;
SetTangentSpeed(speed: any): void;

GetTangentSpeed(): number;

Reset(fixtureA: Fixture, indexA: number, fixtureB: Fixture, indexB: number): void ;
}

class Draw {
init(param: any);
initWithThis(param: any);
constructor();
SetFlags(flags: number): void;
GetFlags(): number;
Expand Down Expand Up @@ -386,7 +386,7 @@ declare namespace b2 {

class CircleShape extends Shape {
constructor();
m_p: Vec2;
m_p: any;
Clone(): CircleShape;
GetChildCount(): number;
TestPoint(transform: Transform, p: Vec2): boolean;
Expand Down

0 comments on commit 2fec9c9

Please sign in to comment.