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

Fix typespecs and function docs #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

s3cur3
Copy link

@s3cur3 s3cur3 commented Feb 3, 2022

Explanation:

  • Function docs indicated they accepted HTTPoison options, but in fact :hackney is running the requests
  • [key: value] indicated a keyword list with required key :key of value type; in contrast, Keyword.t() has no required keys
  • %{key: value} indicated a map with required key :key of value type; in contrast, %{optional(atom) => value} indicates a map with no required keys, but whose keys are all atoms

Explanation:

- [key: value] indicates a keyword list with required key :key of value_type; in contrast, Keyword.t() has no required keys
- %{key: value} indicates a map with required key :key of value_type; in contrast, %{optional(atom) => value} indicates a map with no required keys, but whose keys are all atoms
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

Successfully merging this pull request may close these issues.

1 participant