Mangopay / mangopay2-nodejs-sdk

Node.js SDK for MANGOPAY
https://www.npmjs.com/package/mangopay2-nodejs-sdk
MIT License
51 stars 38 forks source link

Model countryAuthorization.AuthorizationData has an untyped property #331

Open belinde opened 2 years ago

belinde commented 2 years ago

In file typings/models/countryAuthorization.d.ts there is an untyped property (currently on line 7):

import { CountryISO } from "../types";

export namespace countryAuthorization {
    interface AuthorizationData {
        BlockUserCreation: boolean;
        BlockBankAccountCreation: boolean;
        BlockPayout;
    }

    interface CountryAuthorizationData {
        CountryCode: CountryISO;
        CountryName: string;
        Authorization: AuthorizationData;
        LastUpdate: number;
    }
}

Currently, compiling in strict mode causes an error:

node_modules/mangopay2-nodejs-sdk/typings/models/countryAuthorization.d.ts:7:9 - error TS7008: Member 'BlockPayout' implicitly has an 'any' type.

7         BlockPayout;
          ~~~~~~~~~~~

Found 1 error in node_modules/mangopay2-nodejs-sdk/typings/models/countryAuthorization.d.ts:7

It seems the CI integration (that I presumed should exist) failed, or at least doesn't run in strict mode.

belinde commented 2 years ago

Any update on this issue? I cannot upgrade the library due to this