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

Error on TypeScript v4 #102

Open
cauldyclark15 opened this issue Jul 27, 2021 · 4 comments
Open

Error on TypeScript v4 #102

cauldyclark15 opened this issue Jul 27, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@cauldyclark15
Copy link

not allowed in ambient contexts.

12   createFixedVA = createFixedVA;
                     ~~~~~~~~~~~~~

node_modules/xendit-node/src/va/va.d.ts:13:16 - error TS1039: Initializers are not allowed in ambient contexts.

13   getFixedVA = getFixedVA;
                  ~~~~~~~~~~

node_modules/xendit-node/src/va/va.d.ts:14:19 - error TS1039: Initializers are not allowed in ambient contexts.

14   updateFixedVA = updateFixedVA;
                     ~~~~~~~~~~~~~

node_modules/xendit-node/src/va/va.d.ts:15:18 - error TS1039: Initializers are not allowed in ambient contexts.

15   getVAPayment = getVAPayment;
                    ~~~~~~~~~~~~

[10:09:31 AM] Found 52 errors. Watching for file changes.
@stanleynguyen
Copy link
Contributor

Similar to issue #40

@stanleynguyen stanleynguyen added the bug Something isn't working label Jul 27, 2021
@stanleynguyen
Copy link
Contributor

Probably changing assignment to just type declaration (e.g. updateFixedVA = updateFixedVA to updateFixedVA typeof updateFixedVA) would work

@cauldyclark15
Copy link
Author

solved by silencing the TS lib check on tsconfig.json

"skipLibCheck": true

closing this one

@stanleynguyen
Copy link
Contributor

stanleynguyen commented Jul 27, 2021

solved by silencing the TS lib check on tsconfig.json

"skipLibCheck": true

closing this one

Hey @cauldyclark15, glad that you've managed to suppress those errors. However, I would consider this a workaround rather than a proper fix so reopening the issue

@stanleynguyen stanleynguyen reopened this Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants