With Typescript 4.9.4 target ES2020 and BJS 5.39.0, I am getting TypeScript Compile errors:
Any suggestions?
../../web/node_modules/babylonjs/babylon.module.d.ts:185616:9 - error TS2416: Property 'executeStep' in type 'AmmoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(delta: number, impostors: PhysicsImpostor[]) => void' is not assignable to type '{ (delta: number, impostors: PhysicsImpostor[]): void; (delta: number): void; }'.
185616 executeStep(delta: number, impostors: Array<PhysicsImpostor>): void;
~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185639:9 - error TS2416: Property 'applyImpulse' in type 'AmmoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void; (body: PhysicsBody, location: Vector3, impulse: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is missing the following properties from type 'PhysicsImpostor': object, type, _options, _physicsEngine, and 66 more.
185639 applyImpulse(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void;
~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185719:9 - error TS2416: Property 'setLinearVelocity' in type 'AmmoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, linVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
185719 setLinearVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185725:9 - error TS2416: Property 'setAngularVelocity' in type 'AmmoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, angVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
185725 setAngularVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185928:9 - error TS2416: Property 'executeStep' in type 'CannonJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(delta: number, impostors: PhysicsImpostor[]) => void' is not assignable to type '{ (delta: number, impostors: PhysicsImpostor[]): void; (delta: number): void; }'.
185928 executeStep(delta: number, impostors: Array<PhysicsImpostor>): void;
~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185930:9 - error TS2416: Property 'applyImpulse' in type 'CannonJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void; (body: PhysicsBody, location: Vector3, impulse: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
185930 applyImpulse(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void;
~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185950:9 - error TS2416: Property 'setLinearVelocity' in type 'CannonJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, linVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
185950 setLinearVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:185951:9 - error TS2416: Property 'setAngularVelocity' in type 'CannonJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, angVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
185951 setAngularVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:186007:9 - error TS2416: Property 'executeStep' in type 'OimoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(delta: number, impostors: PhysicsImpostor[]) => void' is not assignable to type '{ (delta: number, impostors: PhysicsImpostor[]): void; (delta: number): void; }'.
186007 executeStep(delta: number, impostors: Array<PhysicsImpostor>): void;
~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:186008:9 - error TS2416: Property 'applyImpulse' in type 'OimoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void; (body: PhysicsBody, location: Vector3, impulse: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
186008 applyImpulse(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3): void;
~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:186018:9 - error TS2416: Property 'setLinearVelocity' in type 'OimoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, linVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
186018 setLinearVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~
../../web/node_modules/babylonjs/babylon.module.d.ts:186019:9 - error TS2416: Property 'setAngularVelocity' in type 'OimoJSPlugin' is not assignable to the same property in base type 'IPhysicsEnginePlugin'.
Type '(impostor: PhysicsImpostor, velocity: Vector3) => void' is not assignable to type '{ (impostor: PhysicsImpostor, velocity: Vector3): void; (body: PhysicsBody, angVel: Vector3): void; }'.
Types of parameters 'impostor' and 'body' are incompatible.
Type 'PhysicsBody' is not assignable to type 'PhysicsImpostor'.
186019 setAngularVelocity(impostor: PhysicsImpostor, velocity: Vector3): void;
~~~~~~~~~~~~~~~~~~
Found 12 errors in the same file, starting at: ../../web/node_modules/babylonjs/babylon.module.d.ts:185616