-------------------- Bubletea utilities TODO : Should we validate that returned value is of type *model ? and equal to m ? We are assuming that to be true as of now
(m *model, msg tea.Msg)
| 82 | // TODO : Should we validate that returned value is of type *model ? |
| 83 | // and equal to m ? We are assuming that to be true as of now |
| 84 | func TeaUpdate(m *model, msg tea.Msg) tea.Cmd { |
| 85 | _, cmd := m.Update(msg) |
| 86 | return cmd |
| 87 | } |
| 88 | |
| 89 | // Is the command tea.quit, or a batch that contains tea.quit |
| 90 | func IsTeaQuit(cmd tea.Cmd) bool { |