(path: string, body?: unknown)
| 52 | } |
| 53 | |
| 54 | function patchJSON<T>(path: string, body?: unknown): Promise<T> { |
| 55 | return requestJSON(path, { |
| 56 | method: "PATCH", |
| 57 | headers: { "Content-Type": "application/json" }, |
| 58 | body: body === undefined ? undefined : JSON.stringify(body), |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | export interface WorldInfo { |
| 63 | worldName: string; |
no test coverage detected