Skip to content

Export 'encode_options/0' and 'decode_options/0' types#184

Open
emqplus wants to merge 1 commit intodavisp:masterfrom
emqx:export-decode-encode-options
Open

Export 'encode_options/0' and 'decode_options/0' types#184
emqplus wants to merge 1 commit intodavisp:masterfrom
emqx:export-decode-encode-options

Conversation

@emqplus
Copy link

@emqplus emqplus commented Jan 19, 2020

The types may be used in a wrapper module, such as emqx_json:

-type(encode_options() :: jiffy:encode_options()).
-spec(encode(json_term(), encode_options()) -> json_text()).
encode(Term, Opts) -> jiffy:encode(Term, Opts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant