mangopay2-nodejs-sdk icon indicating copy to clipboard operation
mangopay2-nodejs-sdk copied to clipboard

Model countryAuthorization.AuthorizationData has an untyped property

Open belinde opened this issue 3 years ago • 1 comments

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 avatar Aug 25 '22 11:08 belinde

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

belinde avatar Oct 13 '22 08:10 belinde