(key?: string)
| 73 | } |
| 74 | |
| 75 | get(key?: string): unknown { |
| 76 | if (!key) { |
| 77 | return this.state |
| 78 | } |
| 79 | |
| 80 | return getByPath(this.state, key) |
| 81 | } |
| 82 | |
| 83 | set(key: string | State, value?: unknown): void { |
| 84 | if (typeof key === 'string') { |
no test coverage detected