Skip to content

Commit

Permalink
Merge pull request #16 from windingtree/feat/currencies
Browse files Browse the repository at this point in the history
feat: fix prettier issues
  • Loading branch information
Galeaf11 authored Oct 21, 2022
2 parents eb5a950 + f439d26 commit 1a59d3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/currencies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CurrencyMeta, WiseCurrency } from './types';
import { CurrencyMeta, Duplicates, WiseCurrency } from './types';

export const currencySymbols = {
AED: 'د.إ',
Expand Down Expand Up @@ -244,7 +244,7 @@ export const preferredCurrencies: WiseCurrency[] = [
{ code: 'ZMW', name: 'Zambian kwacha', decimals: 2 }
];

export const dups = Object.entries(currencySymbols).reduce((result, [_, symbol]) => {
export const dups: Duplicates = Object.entries(currencySymbols).reduce((result, [_, symbol]) => {
if (result[symbol]) {
result[symbol] = result[symbol] + 1;
} else {
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@ export type CurrencyMeta = {
symbol: string;
};
};

export type Duplicates = {
[code: string]: number;
};

0 comments on commit 1a59d3e

Please sign in to comment.