View on GitHub
File Changes
// @flow
import type { RequestConfig } from '../../common/types';
-
import type { DeleteTransactionRequest } from '../types';
import { request } from '../../utils/request';

                      
export const deleteLegacyTransaction = (
  config: RequestConfig,
-
  { walletId, transactionId }: DeleteTransactionRequest
+
  { walletId, transactionId }: { walletId: string, transactionId: string }
): Promise<*> =>
  request({
    method: 'DELETE',
// @flow
import type { RequestConfig } from '../../common/types';
-
import type { DeleteTransactionRequest } from '../types';
import { request } from '../../utils/request';

                      
export const deleteTransaction = (
  config: RequestConfig,
-
  { walletId, transactionId }: DeleteTransactionRequest
+
  { walletId, transactionId }: { walletId: string, transactionId: string }
): Promise<*> =>
  request({
    method: 'DELETE',
export type DeleteTransactionRequest = {
  walletId: string,
  transactionId: string,
-
  isLegacy?: boolean,
+
  isLegacy: boolean,
};

                      
export type GetTransactionsResponse = {