Skip to content

Commit

Permalink
Merge pull request #421 from mmmries/fix_typespec
Browse files Browse the repository at this point in the history
fix typespec for date query to make keys optional
  • Loading branch information
begedin authored Nov 7, 2018
2 parents 19ccd62 + c339c40 commit 298911c
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 298911c

Please sign in to comment.