fix(cthsuite): use correct type for "smth serializable as HOCON"

This commit is contained in:
Andrew Mayorov 2023-07-04 11:42:38 +02:00
parent d568d43fe4
commit c7ba300efc
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 5 additions and 1 deletions

View File

@ -51,12 +51,16 @@
-type appname() :: atom().
-type appspec() :: {appname(), appspec_opts()}.
%% Config structure serializable into HOCON document.
-type config() :: #{atom() => scalar() | [scalar()] | config() | [config()]}.
-type scalar() :: atom() | number() | string() | binary().
-type appspec_opts() :: #{
%% 1. Enable loading application config
%% If not defined or set to `false`, this step will be skipped.
%% If application is missing a schema module, this step will fail.
%% Merging amounts to appending, unless `false` is used, then merge result is also `false`.
config => iodata() | emqx_config:config() | emqx_config:raw_config() | false,
config => iodata() | config() | emqx_config:raw_config() | false,
%% 2. Override the application environment
%% If not defined or set to `false`, this step will be skipped.