Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Erlang typespecs toolkit
Erlang
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
include
src
README.md

README.md

typespecs

It is a (currently) .hrl-based repository of commonly used typespec "idioms" that are not available from OTP.

Usage

Just include typespecs.hrl in your code and you can start using its typespecs.

If you are using rebar, you can declare typespec as a dependency in rebar.config:

{deps, [{typespecs, "0.1", {git, "git://github.com/spawngrid/typespecs.git","HEAD"}}]}.

Example

-type gen_server_state() :: #state{}

-spec handle_cast(any(), gen_server_state()) -> gen_server_handle_cast_result().

Something went wrong with that request. Please try again.