Skip to content

oolong / oolong / Update

Update

(common) typealias Update<Model, Msg> = (msg: Msg, model: Model) ->Next<Model, Msg> (source)

Creates a next state and side-effects from a message and current state

Parameters

msg - the message to interpret

model - the current state