Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type errors #15

Open
Luis-Enrique93 opened this issue Feb 13, 2024 · 1 comment · May be fixed by #19
Open

Type errors #15

Luis-Enrique93 opened this issue Feb 13, 2024 · 1 comment · May be fixed by #19

Comments

@Luis-Enrique93
Copy link

First error: "Property 'authentications' is protected and only accessible within class 'TransactionalEmailsApi' and its subclasses"

code:

import * as SibApiV3Sdk from '@getbrevo/brevo'

let apiInstance = new SibApiV3Sdk.TransactionalEmailsApi()

let apiKey = apiInstance.authentications['apiKey']

second error:

(this error is inside node modules)

"Option 'suppressImplicitAnyIndexErrors' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error"

you may have this inside your tsconfig.json:

        "suppressImplicitAnyIndexErrors": true,

Brevo Version:

    "@getbrevo/brevo": "^2.0.0-beta.4",

my node Version: 21.4.0

My npm version: 10.2.4

My typescript Version: 4.9.5

@alexbrazier alexbrazier linked a pull request Apr 4, 2024 that will close this issue
@CyberCowboy404
Copy link

I also have this TS error.
Any plans to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants