()
| 112 | } |
| 113 | |
| 114 | async getAll(): Promise<Record<string, unknown>> { |
| 115 | const raw = await this.sendRequest('monogatari:storage-get-all', {}) as Record<string, unknown>; |
| 116 | const result: Record<string, unknown> = {}; |
| 117 | for (const [k, v] of Object.entries(raw)) { |
| 118 | result[k] = this.applyGetTransformations(k, v); |
| 119 | } |
| 120 | return result; |
| 121 | } |
| 122 | |
| 123 | async each(callback: (key: string, value: unknown) => unknown): Promise<unknown[]> { |
| 124 | const all = await this.getAll(); |
no test coverage detected