]> Entropealabs - wampex.git/commitdiff
add type specs to realm struct
authorChristopher <chris@entropealabs.com>
Tue, 18 Feb 2020 21:19:40 +0000 (15:19 -0600)
committerChristopher <chris@entropealabs.com>
Tue, 18 Feb 2020 21:19:40 +0000 (15:19 -0600)
lib/wampex/realm.ex

index a39a4b7b936b977ce0ca31b6ea4bbde27812c33a..5de5b8bdb5dd480c3d1c0e62c38e030588fa1f4b 100644 (file)
@@ -3,5 +3,8 @@ defmodule Wampex.Realm do
 
   defstruct [:name, :authentication]
 
-  @type t :: %__MODULE__{}
+  @type t :: %__MODULE__{
+          name: binary(),
+          authentication: nil
+        }
 end