Generate Converters & Helpers

Use @deriving to

  • Automatically generate functions that convert between ReScript's internal and JS runtime values (e.g. variants).
  • Convert a record type into an abstract type with generated creation, accessor and method functions.
  • Generate some other helper functions, such as functions from record attribute names.