Add some typspecs.
This commit is contained in:
parent
87502823c5
commit
9c2fc2d583
|
@ -9,6 +9,9 @@ defmodule JOL.Blog do
|
|||
@posts Enum.sort_by(@posts, & &1.date, {:desc, Date})
|
||||
@tags @posts |> Enum.flat_map(& &1.tags) |> Enum.uniq() |> Enum.sort()
|
||||
|
||||
@spec posts() :: []
|
||||
def posts, do: @posts
|
||||
|
||||
@spec unique_tag_list() :: []
|
||||
def unique_tag_list, do: @tags
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue