|
20 | 20 | set_value/3, set_value/4, set_value/5, |
21 | 21 | delete_value/2, delete_value/3, delete_value/4]). |
22 | 22 |
|
23 | | --type conf() :: atom() | string() | binary(). |
| 23 | +-type conf() :: atom() | string() | binary(). |
24 | 24 | -type inifile() :: string(). |
25 | 25 | -type inifiles() :: [inifile()]. |
26 | | --type options() :: [autoreload]. |
| 26 | +-type options() :: [autoreload | {change_fun, fun()}]. |
27 | 27 | -type section() :: string(). |
28 | 28 | -type key() :: string(). |
29 | 29 | -type value() :: string(). |
30 | 30 | -type kvs() :: [{key(), value()}]. |
31 | 31 |
|
| 32 | +-export_type([conf/0, inifile/0, inifiles/0, options/0, section/0, key/0, value/0, kvs/0]). |
| 33 | + |
32 | 34 | %% @doc register inifiles or config dirs |
33 | 35 | -spec register_config(ConfigName::conf(), IniFiles::inifiles()) -> ok | {error, any()}. |
34 | 36 | register_config(ConfigName, IniFiles) -> |
@@ -140,7 +142,7 @@ get_value(ConfigName, Section) -> |
140 | 142 | econfig_server:get_value(ConfigName, Section). |
141 | 143 |
|
142 | 144 | %% @doc get value for a key in a section |
143 | | --spec get_value(ConfigName::conf(), Section::section(), Key::key()) -> Value::value() | undefined. |
| 145 | +-spec get_value(ConfigName::conf(), Section::section(), Key::key()) -> Value::value() | undefined. |
144 | 146 | get_value(ConfigName, Section, Key) -> |
145 | 147 | econfig_server:get_value(ConfigName, Section, Key). |
146 | 148 |
|
|
0 commit comments