package ppx_deriving_rpc

  1. Overview
  2. Docs

expr_of_typ ~loc typ returns an expression of type `Rpc.Types.typ` that represents the core_type typ`.

type field_def = {
  1. f_name : string;
  2. rpc_name : string;
  3. value_name : string;
  4. expr : Ppxlib.expression;
  5. default : Ppxlib.expression option;
  6. typ : Ppxlib.expression;
}

str_of_type loc type_decl returns a list of value bindings that are values of type `Rpc.Types.def` and `Rpc.Types.typ` that represent the newly defined type.