UNPKG

strike-axios

Version:
17 lines (16 loc) 751 B
export declare const FIAT_CURRENCIES: readonly ["USD", "EUR", "GBP"]; export declare const ALL_CURRENCIES: readonly ["USD", "EUR", "GBP", "BTC", "USDT"]; export type FiatCurrency = (typeof FIAT_CURRENCIES)[number]; export type AnyCurrency = (typeof ALL_CURRENCIES)[number]; export type Amount<T extends string> = { amount: string; currency: T; }; export type PaginationList<T> = { items: T[]; count: number; }; export declare const isFiatCurrency: (value: string) => value is FiatCurrency; export declare const isAnyCurrency: (value: string) => value is AnyCurrency; export declare const tryToFiatCurrency: (value: string) => FiatCurrency | undefined; export declare const tryToAnyCurrency: (value: string) => AnyCurrency | undefined;