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

Function update_store_pre

packages/svelte/src/internal/server/index.js:309–313  ·  view source on GitHub ↗
(store_values, store_name, store, d = 1)

Source from the content-addressed store, hash-verified

307 * @returns {number}
308 */
309export function update_store_pre(store_values, store_name, store, d = 1) {
310 const value = store_get(store_values, store_name, store) + d;
311 store.set(value);
312 return value;
313}
314
315/** @param {Record<string, [any, any, any]>} store_values */
316export function unsubscribe_stores(store_values) {

Callers

nothing calls this directly

Calls 2

store_getFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected