Mangopay/mangopay2-nodejs-sdk

Compiling fails in Typescript 4.8

belinde opened this issue · 3 comments

Typescript 4.8 has introduced some changes in the management of any and {}, and the library cannot compile; this is the output with 4.8.2:

node_modules/mangopay2-nodejs-sdk/typings/index.d.ts:167:54 - error TS2344: Type 'T' does not satisfy the constraint '{}'.

167         class Model<T = any> implements ModelMethods<T> {
                                                         ~

  node_modules/mangopay2-nodejs-sdk/typings/index.d.ts:167:21
    167         class Model<T = any> implements ModelMethods<T> {
                            ~~~~~~~
    This type parameter might need an `extends {}` constraint.

node_modules/mangopay2-nodejs-sdk/typings/models.d.ts:13:50 - error TS2344: Type 'T' does not satisfy the constraint '{}'.

13     class Model<T = any> implements ModelMethods<T> {
                                                    ~

  node_modules/mangopay2-nodejs-sdk/typings/models.d.ts:13:17
    13     class Model<T = any> implements ModelMethods<T> {
                       ~~~~~~~
    This type parameter might need an `extends {}` constraint.

Hello @belinde , we are looking into it

any update on this topic?

Hello @belinde,

It should be fix in the next release (1w).

Have a nice day,