current-currency
Version:
Making it easy to work with currencies and cryptos!
10 lines (9 loc) • 456 B
TypeScript
import { Currency } from "../types/currencies";
import { CryptoCurrency } from "../types/cryptocurrencies";
/**
* Adds the appropriate currency symbol
* @param currency The code of the currency e.g. USD
* @param amount The amount of money
* @param position Optional parameter to overwrite the position of the symbol
*/
export declare function addSymbol(currency: Currency | CryptoCurrency, amount: number, position?: "pre" | "post"): string;