flyover / box2d.ts

A TypeScript port of Box2D
https://flyover.github.io/box2d.ts/testbed
MIT License
405 stars 85 forks source link

fix build error with awesome-typescript-loader #51

Closed akrfjmt closed 5 years ago

akrfjmt commented 5 years ago

When I use webpack and awesome-typescript-loader, then I saw this build erorr message.

ERROR in [at-loader] ./node_modules/box2d.ts/Box2D/Particle/b2ParticleSystem.ts:102:81
    TS2322: Type '<T>(a: T, b: T) => boolean' is not assignable to type '(a: A, b: B)=> boolean'.
  Types of parameters 'b' and 'b' are incompatible.
    Type 'B' is not assignable to type 'A'.

ERROR in [at-loader] ./node_modules/box2d.ts/Box2D/Particle/b2ParticleSystem.ts:118:81
    TS2322: Type '<T>(a: T, b: T) => boolean' is not assignable to type '(a: A, b: B)=> boolean'.
  Types of parameters 'b' and 'b' are incompatible.
    Type 'B' is not assignable to type 'A'.
flyover commented 5 years ago

Thanks for the pull request. This has been fixed with a8fab993e18a2b4ff5e547e0da5928a2fbd521ff.