xendit-node
xendit-node copied to clipboard
Error on TypeScript v4
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.
Similar to issue #40
Probably changing assignment to just type declaration (e.g. updateFixedVA = updateFixedVA to updateFixedVA typeof updateFixedVA) would work
solved by silencing the TS lib check on tsconfig.json
"skipLibCheck": true
closing this one
solved by silencing the TS lib check on
tsconfig.json"skipLibCheck": trueclosing 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