(key: string | State, value?: unknown)
| 81 | } |
| 82 | |
| 83 | set(key: string | State, value?: unknown): void { |
| 84 | if (typeof key === 'string') { |
| 85 | setByPath(this.state, key, value) |
| 86 | return |
| 87 | } |
| 88 | |
| 89 | this.state = mergeState(this.state, key) |
| 90 | } |
| 91 | |
| 92 | clear(): void { |
| 93 | this.state = {} |
no test coverage detected