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

x/levo/src/compute-attributes-updates.ts>computeAttributesUpdates

Server side rendering with The Elm Architecture in Deno
Latest
variable computeAttributesUpdates
import { computeAttributesUpdates } from "https://deno.land/x/levo@v0.0.27/src/compute-attributes-updates.ts";

type

<RecordReturnType extends
| boolean
| string
| number
| Record<string, unknown>
| undefined
>
(unnamed 0: { originalAttrs: Record<string, RecordReturnType>; updatedAttrs: Record<string, RecordReturnType>; }) => Array<{ type: "update_attribute"; attributeName: string; value: RecordReturnType; } | { type: "remove_attribute"; attributeName: string; }>