Skip to content

Commit

Permalink
Update Query.t type specifications (#543)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Renner <aaron@renner.live>
  • Loading branch information
michallepicki and aaronrenner authored Jun 19, 2020
1 parent bf59c62 commit 5169efb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/wallaby/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,26 @@ defmodule Wallaby.Query do
| :option
| :select
| :file_field
| :attribute
@type attribute_key_value_pair :: {String.t(), String.t()}
@type selector ::
String.t()
| :attribute_key_value_pair
| attribute_key_value_pair()
@type html_validation ::
:bad_label
| :button_type
| nil
@type conditions :: [
count: non_neg_integer,
text: String.t(),
minimum: non_neg_integer,
maximum: non_neg_integer,
text: String.t() | nil,
visible: boolean() | :any,
selected: boolean() | :any,
minimum: non_neg_integer,
at: pos_integer
at: non_neg_integer | :all
]
@type result :: list(Element.t())
@type opts :: nonempty_list()
@type opts :: list()

@type t :: %__MODULE__{
method: method(),
Expand Down

0 comments on commit 5169efb

Please sign in to comment.