module

Tea::Model

Model contains the program's state as well as its core functions. This is the interface that user models must implement.

Instance methods

init
Source
update(msg : Msg)

Update may return:

  • {Model, Cmd?} (native command flow)
  • {Model, Msg?} (Go-style convenience; message is wrapped as a Cmd)
  • Model (state change only; no command)
Source
view
Source