UNPKG
@yoroi/banxa
Version:
latest (1.5.0)
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
The Banxa integration package of Yoroi SDK
github.com/Emurgo/yoroi/packages/banxa
@yoroi/banxa
/
src
/
helpers
/
fiat-types.ts
8 lines
(5 loc)
•
255 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
type
BanxaFiatType
=
'USD'
|
'EUR'
const
supportedFiatTypes
:
Readonly
<
BanxaFiatType
[]> = [
'USD'
,
'EUR'
]
as
const
export
function
banxaIsFiatType
(
value
:
any
): value is
BanxaFiatType
{
return
supportedFiatTypes.
includes
(value
as
BanxaFiatType
) }