I am new to elixir and I try to use a typespec for one of my function.
@spec fetch_key(String.t()) :: {:ok, X509.PublicKey.t()} | {:error, any()}
def fetch_key(url) do
CertValidation.fetch_valid_pub_key(url)
end
When I run dialyzer I get the following error message:
:0: Unknown type public_key:ec_public_key/0
:0: Unknown type public_key:rsa_public_key/0
Do you have an idea of what might be the issue?