Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval is missing types, causing dialyzer to complain #7

Open
ArthurClemens opened this issue Nov 23, 2024 · 0 comments
Open

eval is missing types, causing dialyzer to complain #7

ArthurClemens opened this issue Nov 23, 2024 · 0 comments

Comments

@ArthurClemens
Copy link

Current types:

@spec eval(expr :: String.t | charlist) :: {:ok, result::boolean} | {:error, error::map}
@spec eval(expr :: String.t | charlist, props :: map) :: {:ok, result::boolean} | {:error, error::map}

With missing types added:

@type expreso_result ::
        {:ok, boolean()}
        | {:error, map()}
        | {:error, String.t()}
        | {:error, {term(), :expreso_parser, term()}}
        | {:error, {term(), :expreso_lexer, term()}, term()}
@spec eval(expr :: String.t() | charlist) :: expreso_result()
@spec eval(expr :: String.t() | charlist, props :: map) :: expreso_result()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant