current-currency
Version:
Making it easy to work with currencies and cryptos!
12 lines (11 loc) • 555 B
TypeScript
export declare const CURRENCY_CODES: readonly ["EUR", "USD", "CAD", "HKD", "ISK", "PHP", "DDK", "HUF", "CZK", "AUD", "RON", "SEK", "IDR", "INR", "BRL", "RUB", "HRK", "JPY", "TBH", "CHF", "SGD", "PLN", "BGN", "TRY", "CNY", "NOK", "NZD", "ZAR", "MXN", "ILS", "GBP", "KRW", "MYR"];
export declare type Currency = typeof CURRENCY_CODES[number];
export declare type CurrencyType = {
[key in Currency]: {
type: "currency";
name: string;
symbol: string;
decimal: string;
position: "pre" | "post";
};
};