Browse Source

fix(emqx_map_lib): Fix underspec

k32 4 years atrás
parent
commit
784ca5bf24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx/src/emqx_map_lib.erl

+ 1 - 1
apps/emqx/src/emqx_map_lib.erl

@@ -31,7 +31,7 @@
         ]).
 
 -export_type([config_key/0, config_key_path/0]).
--type config_key() :: atom() | binary() | string().
+-type config_key() :: atom() | binary() | [byte()].
 -type config_key_path() :: [config_key()].
 -type convert_fun() :: fun((...) -> {K1::any(), V1::any()} | drop).