refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)

This commit is contained in:
Alex Grozav
2025-03-24 14:40:19 +02:00
committed by GitHub
parent defeb2e817
commit b9608647ca
31 changed files with 422 additions and 345 deletions

View File

@@ -1,13 +1,17 @@
export const enum RecipientType {
email = 'EMAIL',
phone = 'PHONE',
paypalId = 'PAYPAL_ID',
}
export const RecipientTypes = {
email: 'EMAIL',
phone: 'PHONE',
paypalId: 'PAYPAL_ID',
} as const;
export const enum RecipientWallet {
paypal = 'PAYPAL',
venmo = 'VENMO',
}
export type RecipientType = (typeof RecipientTypes)[keyof typeof RecipientTypes];
export const RecipientWallets = {
paypal: 'PAYPAL',
venmo: 'VENMO',
} as const;
export type RecipientWallet = (typeof RecipientWallets)[keyof typeof RecipientWallets];
export interface IAmount {
currency?: string;