Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/mod/levo-view.ts>Levo.Update

Server side rendering with The Elm Architecture in Deno
Latest
type alias Levo.Update
import { type Levo } from "https://deno.land/x/levo@v0.0.27/mod/levo-view.ts";
const { Update } = Levo;

Type Parameters

Model
Action
definition: (args: { model: Model; action: Action; event?: unknown; }) => { newModel: Model; then?: () => Promise<Action>; }