Compiling fails in Typescript 4.8
belinde opened this issue · 3 comments
belinde commented
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.
fredericdelordm commented
Hello @belinde , we are looking into it
belinde commented
any update on this topic?
fredericdelordm commented