LibWechat.Typespecs (lib_wechat v0.4.0)
View SourceLibWechat 类型规范模块
此模块定义了 LibWechat 库中使用的各种类型规范,用于提高代码的可读性和类型安全性。 类型规范有助于开发者理解函数的输入和输出类型,也有助于静态分析工具(如 Dialyzer)检查代码中的类型错误。
Summary
Types
@type access_token() :: String.t()
@type api_response() :: {:ok, dict()} | {:error, LibWechat.Error.t()}
@type appid() :: String.t()
@type binary_response() :: {:ok, binary()} | {:error, LibWechat.Error.t()}
@type body() :: iodata() | nil
@type code() :: String.t()
@type config() :: keyword()
@type finch_instance() :: module()
@type http_client() :: module()
@type http_status() :: non_neg_integer()
@type message_payload() :: dict()
@type method() :: :get | :post | :head | :patch | :delete | :options | :put
@type openid() :: String.t()
@type opts() :: keyword()
@type page() :: String.t()
@type path() :: String.t()
@type secret() :: String.t()
@type security_payload() :: dict()
@type service_host() :: String.t()
@type session_key() :: String.t()
@type template_id() :: String.t()
@type url() :: String.t()
@type wxa_payload() :: dict()