MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / edit

Function edit

packages/core/src/runtime/__tests__/inputEditor.unicode.test.ts:23–28  ·  view source on GitHub ↗
(
  event: ZrevEvent,
  ctx: Readonly<{ value: string; cursor: number }>,
)

Source from the content-addressed store, hash-verified

21}
22
23function edit(
24 event: ZrevEvent,
25 ctx: Readonly<{ value: string; cursor: number }>,
26): ReturnType<typeof applyInputEditEvent> {
27 return applyInputEditEvent(event, { id: "input", value: ctx.value, cursor: ctx.cursor });
28}
29
30function noAction(value: string, cursor: number) {
31 return {

Callers 1

Calls 1

applyInputEditEventFunction · 0.85

Tested by

no test coverage detected