Skip to content

Commit

Permalink
fix: Adds erlang:timestamp() to typespec
Browse files Browse the repository at this point in the history
This is supported in jsx_parser which calls calendar:now_to_datetime/1
for these timestamps.
  • Loading branch information
zigge-zagge committed Aug 11, 2023
1 parent 1d3407a commit 4e396bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsx.erl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
| true | false | null
| integer() | float()
| binary() | atom()
| erlang:timestamp()
| calendar:datetime().

-type json_text() :: binary().
Expand Down

0 comments on commit 4e396bf

Please sign in to comment.