浏览代码

fix types for pre-17 releases

pull/392/head
Tristan Sloughter 10 年前
父节点
当前提交
d8509f7842
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      src/rebar_mustache.erl

+ 4
- 0
src/rebar_mustache.erl 查看文件

@ -62,7 +62,11 @@
-opaque template() :: #?MODULE{}. -opaque template() :: #?MODULE{}.
%% @see parse_binary/1 %% @see parse_binary/1
%% @see parse_file/1 %% @see parse_file/1
-ifdef(namespaced_types).
-type data() :: #{string() => data() | iodata() | fun((data(), function()) -> iodata())}. -type data() :: #{string() => data() | iodata() | fun((data(), function()) -> iodata())}.
-else.
-type data() :: dict().
-endif.
%% @see render/2 %% @see render/2
%% @see compile/2 %% @see compile/2
-type partial() :: {partial, {state(), EndTag :: binary(), LastTagSize :: non_neg_integer(), Rest :: binary(), [tag()]}}. -type partial() :: {partial, {state(), EndTag :: binary(), LastTagSize :: non_neg_integer(), Rest :: binary(), [tag()]}}.

正在加载...
取消
保存