(store, name)
| 29 | * @param {string} name |
| 30 | */ |
| 31 | export 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 |