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
/
order-types.ts
8 lines
(5 loc)
•
264 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
type
BanxaOrderType
=
'buy'
|
'sell'
const
supportedOrderTypes
:
Readonly
<
BanxaOrderType
[]> = [
'buy'
,
'sell'
]
as
const
export
function
banxaIsOrderType
(
value
:
any
): value is
BanxaOrderType
{
return
supportedOrderTypes.
includes
(value
as
BanxaOrderType
) }