diff options
author | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
---|---|---|
committer | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
commit | 0f3f0e035b43eabd3f739c41964446962cf54208 (patch) | |
tree | 9279c54e100c92375c9d980e2031e0a153245025 /lib/irc/parser/capabs.ex | |
parent | Some fixes (diff) |
Cont. wipmaster
Diffstat (limited to 'lib/irc/parser/capabs.ex')
-rw-r--r-- | lib/irc/parser/capabs.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/irc/parser/capabs.ex b/lib/irc/parser/capabs.ex index 88bf017..1448d75 100644 --- a/lib/irc/parser/capabs.ex +++ b/lib/irc/parser/capabs.ex @@ -1,7 +1,10 @@ defmodule Irc.Parser.Capabs do @moduledoc "Helper to parse capability lists" + @type t :: %{capab_name() => capab_value()} + @type capab_name :: String.t() + @type capab_value :: true | any() - @spec parse(String.t) :: %{capab :: String.t => true | args :: Map.t} + @spec parse(String.t()) :: t() def parse(string) do string |> String.split(" ") @@ -29,4 +32,3 @@ defmodule Irc.Parser.Capabs do end end - |