UNPKG

@yoroi/exchange

Version:

The Exchange package of Yoroi SDK

9 lines (6 loc) 280 B
import {isStringLiteral} from '@yoroi/common' import {Exchange} from '@yoroi/types' const supportedCoinTypes: Readonly<Exchange.Coin[]> = ['ADA'] as const export function isCoinType(value: unknown): value is Exchange.Coin { return isStringLiteral(supportedCoinTypes, value) }