mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Add type specs for Module:opt_type/1
This commit is contained in:
parent
6aefd24eb3
commit
01a2c9fe12
40 changed files with 258 additions and 34 deletions
|
@ -652,6 +652,8 @@ format({Key, Val}) when is_binary(Val) ->
|
|||
format({Key, Val}) -> % TODO: improve Yaml parsing
|
||||
{Key, Val}.
|
||||
|
||||
-spec opt_type(allow_contrib_modules) -> fun((boolean()) -> boolean());
|
||||
(atom()) -> [atom()].
|
||||
opt_type(allow_contrib_modules) ->
|
||||
fun (false) -> false;
|
||||
(no) -> false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue