diff --git a/.changeset/six-ways-sniff.md b/.changeset/six-ways-sniff.md new file mode 100644 index 00000000..049636a1 --- /dev/null +++ b/.changeset/six-ways-sniff.md @@ -0,0 +1,5 @@ +--- +"@razorpay/i18nify": patch +--- + +[fix]: redundant types deleted diff --git a/src/modules/currency/getCurrencyList.ts b/src/modules/currency/getCurrencyList.ts index 95fc8d5c..8821a7c8 100644 --- a/src/modules/currency/getCurrencyList.ts +++ b/src/modules/currency/getCurrencyList.ts @@ -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; }; diff --git a/src/modules/currency/types.ts b/src/modules/currency/types.ts index 552fb2cc..cfcb082a 100644 --- a/src/modules/currency/types.ts +++ b/src/modules/currency/types.ts @@ -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;