Skip to content

Commit

Permalink
fix typespec for date query to make keys optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmries committed Nov 7, 2018
1 parent 19ccd62 commit c339c40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/stripe.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ defmodule Stripe do

@type id :: String.t()
@type date_query :: %{
gt: timestamp,
gte: timestamp,
lt: timestamp,
lte: timestamp
optional(:gt) => timestamp,
optional(:gte) => timestamp,
optional(:lt) => timestamp,
optional(:lte) => timestamp
}
@type options :: Keyword.t()
@type timestamp :: pos_integer
Expand Down

0 comments on commit c339c40

Please sign in to comment.