UNPKG

shopify-currencies.js

Version:

Simple wrapper to access Shopify's currency conversion rates from Node.js

12 lines (10 loc) 261 B
type Rates = { [key: string]: number; }; type Convert = (amount: number, from: string, to: string) => number; type Currencies = { rates: Rates; convert: Convert; }; declare function loadCurrencies(): Promise<Currencies>; export { loadCurrencies };