Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/levo/src/patch.ts>Patch

Server side rendering with The Elm Architecture in Deno
Latest
type alias Patch
import { type Patch } from "https://deno.land/x/levo@v0.0.27/src/patch.ts";
definition: { originalNode: MountedVirtualNode<Action>; } & (
| { type: "replace_node"; updatedVirtualNode: VirtualNode<Action>; parentVirtualNode: MountedVirtualNode<Action> | undefined; }
| { type: "add_node"; virtualNode: VirtualNode<Action>; }
| { type: "remove_node"; nodeToBeRemoved: Node; }
| { type: "update_attribute"; attributeName: string; value: string | Action | undefined; }
| { type: "remove_attribute"; attributeName: string; }
| { type: "update_style_attribute"; attributeName: string; value: string | undefined; }
| { type: "remove_style_attribute"; attributeName: string; }
)