Function convertToMoney

  • This function converts a money amount number into a Money type.

    Parameters

    • props: {
          amount: string | number;
          currency: string;
          inDollars?: boolean;
      }
      • amount: string | number

        the money amount

      • currency: string

        the ISO code of the target currency

      • Optional inDollars?: boolean

        Is the price in dollars? If so, it will be converted to cents.

    Returns Money

Generated using TypeDoc