Closed jeroenvisser101 closed 3 years ago
Thanks for the PR, much appreciated and gratefully accepted. I have published ex_money 5.5.4 with the following changelog:
t:Cldr.Number.Format.Options
as an argument to Money.to_string/2
. Thanks to @jeroenvisser101 for the PR. Closes #127.
This PR is part of a series of PRs that aim to improve performance by allowing both
%Cldr.Number.Format.Options{}
structs to be passed as options in place of keyword lists, and to add support for%Cldr.Currency{}
structs as alternative for currency codes.https://github.com/elixir-cldr/cldr_currencies/pull/4 https://github.com/elixir-cldr/cldr_numbers/pull/18 https://github.com/kipcole9/money/pull/127 (this PR)
Support for precompiled option structs was added before, but not to the
to_string!/2
function, and this PR aims to add this in both documentation and in typespecs.