Skip to content

Commit

Permalink
[fix]: redundant types deleted (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-khanna authored Dec 1, 2023
1 parent a0a0d0b commit 1e1b8d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-ways-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/i18nify": patch
---

[fix]: redundant types deleted
3 changes: 1 addition & 2 deletions src/modules/currency/getCurrencyList.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { CURRENCIES } from './data/currencies';
import { GetCurrencyListOutput } from './types';
import { withErrorBoundary } from '../../common/errorBoundary';

const getCurrencyList = (): GetCurrencyListOutput => {
const getCurrencyList = () => {
return CURRENCIES;
};

Expand Down
11 changes: 0 additions & 11 deletions src/modules/currency/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import { CURRENCIES } from './data/currencies';

export interface Currency {
symbol: string;
name: string;
}

export interface GetCurrencyListOutput {
[currencyCode: keyof typeof CURRENCIES]: Currency;
}

export interface ByParts {
currencySymbol: string;
integerValue: string;
Expand Down

0 comments on commit 1e1b8d8

Please sign in to comment.