With the as: :string parameter I expected the returned value to always be a string, but the implementation is just a passthrough for the fetched value.
A suggestion solution is to add get/1 and get!/1, without the type argument, that returns the value exactly as it is stored.
Hi, I've noticed a strange behavior when getting config values that are not strings. Take this example:
Here I'm setting a boolean value:
I then try to access it using the
as: :bool
parameter, but this happens:It will only work if i use the
as: :string
parameter, like this:With the
as: :string
parameter I expected the returned value to always be a string, but the implementation is just a passthrough for the fetched value.A suggestion solution is to add
get/1
andget!/1
, without the type argument, that returns the value exactly as it is stored.