UNPKG

@yoroi/banxa

Version:

The Banxa integration package of Yoroi SDK

8 lines (5 loc) 264 B
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) }