MCPcopy Create free account
hub / github.com/Effect-TS/effect / updateAt

Function updateAt

packages/ui/devtools/test/DevToolsServer.test.ts:191–205  ·  view source on GitHub ↗
(seq: number, excluded: boolean)

Source from the content-addressed store, hash-verified

189const propsAt = (seq: number) => JSON.stringify({ _tag: "PropsChanged", ...at, seq, props: { seq } })
190
191const updateAt = (seq: number, excluded: boolean) =>
192 JSON.stringify({
193 _tag: "Update",
194 ...at,
195 seq,
196 source: { _tag: "DomEvent", name: "click" },
197 message: { _tag: excluded ? "Ticked" : "Clicked" },
198 props: {},
199 model: { seq },
200 commands: [],
201 events: [],
202 lists: [],
203 sends: [],
204 ...(excluded ? { excluded: true } : {})
205 })
206
207const fakePage = Effect.fnUntraced(function*(
208 url: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected