Packages

Time traveller debugger, tailor-made for Lustre

Current section

Files

Jump to
tardis src tardis internals data msg.gleam
Raw

src/tardis/internals/data/msg.gleam

import gleam/dynamic.{type Dynamic}
import lustre/effect.{type Effect}
import tardis/internals/data/step.{type Step}
import tardis/internals/data/colors.{type ColorScheme}
pub type Msg {
// Panel
ToggleOpen
UpdateColorScheme(ColorScheme)
Debug(String)
SelectDebugger(String)
// Debugger
AddApplication(String, fn(Dynamic) -> Effect(Msg))
AddStep(String, Dynamic, Dynamic)
BackToStep(String, Step)
Restart(String)
}