Skip to content

Commit 67cde49

Browse files
authored
Improve error context typespec (#102)
Explicitly allows string and atom keys. Fixes #101
1 parent 87ff8cb commit 67cde49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_tracker.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defmodule ErrorTracker do
6565
@typedoc """
6666
A map containing the relevant context for a particular error.
6767
"""
68-
@type context :: %{String.t() => any()}
68+
@type context :: %{(String.t() | atom()) => any()}
6969

7070
@typedoc """
7171
An `Exception` or a `{kind, payload}` tuple compatible with `Exception.normalize/3`.

0 commit comments

Comments
 (0)