Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 2c281df

Browse files
committed
feat(editor-export): adjust quote types
1 parent 5f839e7 commit 2c281df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/helper/converter/editor_to_html/frags/quote.ex

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ defmodule Helper.Converter.EditorToHTML.Frags.Quote do
4343
</blockquote>)
4444
end
4545

46+
@spec frag(:caption, String.t()) :: T.html()
4647
def frag(:caption, caption) do
4748
caption_class = @class["caption"]
4849
caption_line_class = @class["caption_line"]

lib/helper/types.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ defmodule Helper.Types do
3838
footerTitle: String.t()
3939
}
4040

41-
@type editor_quote_mode :: :short | :long
41+
@typep editor_quote_mode :: :short | :long
4242
@typedoc """
4343
editor.js's quote tool data format
4444
"""
4545
@type editor_quote :: %{
4646
required(:text) => String.t(),
4747
required(:mode) => editor_quote_mode,
48-
caption: String.t(),
48+
caption: String.t()
4949
}
5050

5151
@typedoc """

0 commit comments

Comments
 (0)