Skip to content

Commit

Permalink
fixes #40 (The expression of an export assignment must be...)
Browse files Browse the repository at this point in the history
- Comply to typescript version 2.6 and above
- Tested in typescript version 3.4, typescript above 3.4 may work but not guarantee.
- Typescript reference: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts
  • Loading branch information
huben92 committed Mar 31, 2020
1 parent 6d7ccd8 commit 0453e8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/xendit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { EWalletService } from './ewallet';
import { BalanceServices } from './balance';
import { RetailOutletService } from './retail_outlet';

export = class Xendit {
declare class Xendit {
constructor(opts: XenditOptions);
static Errors = Errors;
static Errors;
Card: typeof CardService;
VirtualAcc: typeof VAService;
Disbursement: typeof DisbursementService;
Expand All @@ -22,4 +22,5 @@ export = class Xendit {
EWallet: typeof EWalletService;
Balance: typeof BalanceServices;
RetailOutlet: typeof RetailOutletService;
};
}
export = Xendit;

0 comments on commit 0453e8d

Please sign in to comment.