(key: K, value: GlobalState[K])
| 361 | } |
| 362 | |
| 363 | updateGlobalState<K extends GlobalStateKey>(key: K, value: GlobalState[K]) { |
| 364 | if (isPassThroughStateKey(key)) { |
| 365 | return this.originalContext.globalState.update(key, value) |
| 366 | } |
| 367 | |
| 368 | this.stateCache[key] = value |
| 369 | return this.originalContext.globalState.update(key, value) |
| 370 | } |
| 371 | |
| 372 | private getAllGlobalState(): GlobalState { |
| 373 | return Object.fromEntries(GLOBAL_STATE_KEYS.map((key) => [key, this.getGlobalState(key)])) |
no test coverage detected