From 0f3f0e035b43eabd3f739c41964446962cf54208 Mon Sep 17 00:00:00 2001 From: href Date: Mon, 11 Jan 2021 15:53:02 +0100 Subject: Cont. wip --- lib/irc/parser/capabs.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/irc/parser/capabs.ex') 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 - -- cgit v1.2.3