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

Function validate_store

packages/svelte/src/internal/shared/validate.js:31–35  ·  view source on GitHub ↗
(store, name)

Source from the content-addressed store, hash-verified

29 * @param {string} name
30 */
31export function validate_store(store, name) {
32 if (store != null && typeof store.subscribe !== 'function') {
33 e.store_invalid_shape(name);
34 }
35}
36
37/**
38 * @template {(...args: any[]) => unknown} T

Callers 1

store_getFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected