Skip to content

Commit

Permalink
feat(core-components-amount): export CurrencyCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancar committed Jun 26, 2020
1 parent b4b0699 commit 1a6155a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/amount/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Amount as DefaultAmount } from './component';
import { PureAmount } from './pure/component';
import { AmountProps } from './types';

type AmountType = typeof DefaultAmount & { Pure: typeof PureAmount };
const Amount: AmountType = DefaultAmount as AmountType;
Amount.Pure = PureAmount;

export { Amount, AmountProps };
export * from './types';
export { Amount };
2 changes: 2 additions & 0 deletions packages/amount/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { CurrencyCodes } from '../utils/currency-codes';

export { CurrencyCodes } from '../utils/currency-codes';

export type AmountProps = {
/**
* Денежное значение в минорных единицах
Expand Down

0 comments on commit 1a6155a

Please sign in to comment.