Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No QA] [TS Migration] Migrate PaymentMethods.js to TypeScript #29074

Merged
8 changes: 1 addition & 7 deletions src/libs/PaymentUtils.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import {SvgProps} from 'react-native-svg';
import BankAccountModel from './models/BankAccount';
import getBankIcon from '../components/Icon/BankIcons';
import CONST from '../CONST';
import * as Localize from './Localize';
import Fund from '../types/onyx/Fund';
import BankAccount from '../types/onyx/BankAccount';
import PaymentMethod from '../types/onyx/PaymentMethod';

type AccountType = BankAccount['accountType'] | Fund['accountType'];

type PaymentMethod = (BankAccount | Fund) & {
description: string;
icon: React.FC<SvgProps>;
iconSize?: number;
};

/**
* Check to see if user has either a debit card or personal bank account added
*/
Expand Down
356 changes: 0 additions & 356 deletions src/libs/actions/PaymentMethods.js

This file was deleted.

Loading
Loading