(state: S, path: readonly PropertyKey[])
| 249 | }; |
| 250 | |
| 251 | const getAtPath = (state: S, path: readonly PropertyKey[]) => { |
| 252 | let current: any = state; |
| 253 | for (const key of path) { |
| 254 | if (isStatePrimitive(current)) return undefined; |
| 255 | current = current[key as keyof typeof current]; |
| 256 | } |
| 257 | return current as any; |
| 258 | }; |
| 259 | |
| 260 | const storeApi: Store<S> = { |
| 261 | get, |
no test coverage detected