Closed ardyfeb closed 4 years ago
@ardyfeb I wonder if it's a problem though 🤔 because we have already given an identifier Xendit
to the class, just exporting with shorthand instead of exporting on a separate line.
Would really appreciate it if you can provide a code example for bug reproduction 😄
it is a problem, we need to downgrade typescript to below 2.6 if want to use xendit-node on our project. Please fix it.
Hey @huben92 would you like to take this up and get it fixed immediately?
Yes, sure
According https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts exporting ambient contexts are forbidden
exportig definition should be:
instead export directly:
so we must refactoring https://github.com/xendit/xendit-node/blob/master/src/xendit.d.ts and related files