Skip to content

Commit b43d2ca

Browse files
fix isolatedmodule errors
1 parent 6e97cbb commit b43d2ca

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

packages/payment-processor/src/payment/index.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
import { ContractTransaction, Signer, BigNumber, BigNumberish, providers } from 'ethers';
1+
import { BigNumber, BigNumberish, ContractTransaction, providers, Signer } from 'ethers';
22

3-
import { ClientTypes, CurrencyTypes, ExtensionTypes, TypesUtils } from '@requestnetwork/types';
3+
import {
4+
ClientTypes,
5+
CurrencyTypes,
6+
ExtensionTypes,
7+
RequestLogicTypes,
8+
TypesUtils,
9+
} from '@requestnetwork/types';
410

511
import { getBtcPaymentUrl } from './btc-address-based';
6-
import { _getErc20PaymentUrl, getAnyErc20Balance } from './erc20';
7-
import { payErc20Request } from './erc20';
12+
import { _getErc20PaymentUrl, getAnyErc20Balance, payErc20Request } from './erc20';
813
import { payErc777StreamRequest } from './erc777-stream';
914
import { _getEthPaymentUrl, payEthInputDataRequest } from './eth-input-data';
1015
import { payEthFeeProxyRequest } from './eth-fee-proxy';
1116
import { ITransactionOverrides } from './transaction-overrides';
1217
import { getNetworkProvider, getProvider, getSigner } from './utils';
1318
import { ISwapSettings } from './swap-erc20-fee-proxy';
14-
import { RequestLogicTypes } from '@requestnetwork/types';
1519
import { payAnyToErc20ProxyRequest } from './any-to-erc20-proxy';
1620
import { payAnyToEthProxyRequest } from './any-to-eth-proxy';
1721
import { WalletConnection } from 'near-api-js';
@@ -21,7 +25,8 @@ import { encodeRequestErc20Approval } from './encoder-approval';
2125
import { encodeRequestPayment } from './encoder-payment';
2226
import { IPreparedTransaction } from './prepared-transaction';
2327
import { IRequestPaymentOptions } from '../types';
24-
export { INearTransactionCallback } from './utils-near';
28+
29+
export type { INearTransactionCallback } from './utils-near';
2530

2631
export const noConversionNetworks = [
2732
ExtensionTypes.PAYMENT_NETWORK_ID.ERC777_STREAM,

packages/payment-processor/src/payment/swap-any-to-erc20.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { CurrencyManager, EvmChains, UnsupportedCurrencyError } from '@requestne
1717
import { IRequestPaymentOptions } from '../types';
1818
import { IPreparedTransaction } from './prepared-transaction';
1919

20-
export { ISwapSettings } from './swap-erc20-fee-proxy';
20+
export type { ISwapSettings } from './swap-erc20-fee-proxy';
2121

2222
/**
2323
* Processes a transaction to swap tokens and pay an ERC20 Request through a proxy with fees.

packages/request-client.js/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import { default as HttpDataAccess } from './http-data-access';
99
import * as Types from './types';
1010
import { NodeConnectionConfig } from './http-data-access-config';
1111

12+
export type { NodeConnectionConfig };
1213
export {
1314
PaymentReferenceCalculator,
1415
Request,
1516
RequestNetwork,
1617
RequestNetworkBase,
1718
HttpDataAccess,
1819
HttpMetaMaskDataAccess,
19-
NodeConnectionConfig,
2020
Types,
2121
Utils,
2222
};

0 commit comments

Comments
 (0)