currency.ts 381 B

1234567891011121314151617181920212223
  1. export const currencies = <const>{
  2. USD: '$',
  3. EUR: '€',
  4. GBP: '£',
  5. SEK: 'kr',
  6. CAD: '$',
  7. NOK: 'kr',
  8. DKK: 'kr',
  9. AUD: '$',
  10. NZD: '$',
  11. CHF: 'Fr',
  12. SGD: '$',
  13. INR: '₹',
  14. BRL: 'R$',
  15. MXN: '$',
  16. COP: '$',
  17. CLP: '$',
  18. PEN: 'S/',
  19. }
  20. type Currency = typeof currencies
  21. export type CurrencyCode = keyof Currency
  22. export type CurrencySymbol = Currency[CurrencyCode]