(store)
| 188 | * @returns {Readable<T>} |
| 189 | */ |
| 190 | export function readonly(store) { |
| 191 | return { |
| 192 | // @ts-expect-error TODO i suspect the bind is unnecessary |
| 193 | subscribe: store.subscribe.bind(store) |
| 194 | }; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Get the current value from a store by subscribing and immediately unsubscribing. |
no outgoing calls
no test coverage detected
searching dependent graphs…