MCPcopy
hub / github.com/sveltejs/svelte / update_pre_prop

Function update_pre_prop

packages/svelte/src/internal/client/reactivity/props.js:43–47  ·  view source on GitHub ↗
(fn, d = 1)

Source from the content-addressed store, hash-verified

41 * @returns {number}
42 */
43export function update_pre_prop(fn, d = 1) {
44 const value = fn() + d;
45 fn(value);
46 return value;
47}
48
49/**
50 * The proxy handler for rest props (i.e. `const { x, ...rest } = $props()`).

Callers

nothing calls this directly

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected