summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-05 19:35:11 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-05 19:35:11 -0500
commitd8509f78424a4942bc66ffb4e29684c02f99c281 (patch)
tree71c9d9f182d87ff2e81bb6e50563245912de9b35
parentec600a5b8580c22bba4081ccdfc5fdcd2d345f11 (diff)
fix types for pre-17 releases
-rw-r--r--src/rebar_mustache.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_mustache.erl b/src/rebar_mustache.erl
index 375a591..eb82785 100644
--- a/src/rebar_mustache.erl
+++ b/src/rebar_mustache.erl
@@ -62,7 +62,11 @@
-opaque template() :: #?MODULE{}.
%% @see parse_binary/1
%% @see parse_file/1
+-ifdef(namespaced_types).
-type data() :: #{string() => data() | iodata() | fun((data(), function()) -> iodata())}.
+-else.
+-type data() :: dict().
+-endif.
%% @see render/2
%% @see compile/2
-type partial() :: {partial, {state(), EndTag :: binary(), LastTagSize :: non_neg_integer(), Rest :: binary(), [tag()]}}.